UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '041FuF7wGeV9kHUJDYEzaGbCs9s92c2RoXqvRNFMauo='
WHERE
key_id = '98efbf7ec6eb2486714d1b3a5ec2e9ac1e23a8832208061582d8dedc792fafd3'
AND (
token = '041FuF7wGeV9kHUJDYEzaGbCs9s92c2RoXqvRNFMauo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)