UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'OLCJvea+ndFPBKODCvxrtfY888VF3AD4K7sePCmhDv0='
WHERE
key_id = '619cf72cf550f45823148fe65862a8e209e6e3702252535ba9787ee80d335acc'
AND (
token = 'OLCJvea+ndFPBKODCvxrtfY888VF3AD4K7sePCmhDv0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)