UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'NxPM16e59KO3BlPUPwkm2Vk1ttUDDtTyRCtSnRWsb/k='
WHERE
key_id = '5ea5c34f718b32d9620f5b74115a1631e13b516ed111e6f97ef77d4c13c9bc87'
AND (
token = 'NxPM16e59KO3BlPUPwkm2Vk1ttUDDtTyRCtSnRWsb/k='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)