UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'U/kojuiJNuX/KkM1o9bkmNlZ5SI8bulaKCBN4Vyipuo='
WHERE
key_id = '59fa19ccd30faff3700cc4c31a19792368c15a1f28158851ddd525a218cb74c5'
AND (
token = 'U/kojuiJNuX/KkM1o9bkmNlZ5SI8bulaKCBN4Vyipuo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)