UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'iu/PyDiIcYKOb9VuSK3+kgwvCMYVaeqMfyqUt9VAp3Y='
WHERE
key_id = '88faa41096270c8325ece94fcdbbdd7b74921feb0af36ab97c3ba2f3c39f4f82'
AND (
token = 'iu/PyDiIcYKOb9VuSK3+kgwvCMYVaeqMfyqUt9VAp3Y='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)