UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Fj5BD0bDe+SsKVXjEeLjC/6EPQbdYG9zvTsQmcJAxxw='
WHERE
key_id = 'eb2037d363d6016a3843fd894ae53571ab25f5150acd45063505a4961ee2bc94'
AND (
token = 'Fj5BD0bDe+SsKVXjEeLjC/6EPQbdYG9zvTsQmcJAxxw='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)