UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'OPZC6Jzh9LIozovuVLIFAWzZxfpeFMj7Dcu7V4AUBsQ='
WHERE
key_id = '4914a0a83950d4dc54dd322d12f21fecadd8d031a3bb92352ef95f44529b2672'
AND (
token = 'OPZC6Jzh9LIozovuVLIFAWzZxfpeFMj7Dcu7V4AUBsQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)