UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'zR2k2Ajl4sOvbjtYhWFdu5Yg/GURkulPLHzvMsfT+zA='
WHERE
key_id = '97e95b2c88a24ac7b0f2bbc93c53ab74ff94e78cfcb43f06e149c2364070dbdd'
AND (
token = 'zR2k2Ajl4sOvbjtYhWFdu5Yg/GURkulPLHzvMsfT+zA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)