UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Js/EWxeDmLCSRaoIYOgZHH7r/NBMd+hywUKdCUnCKBM='
WHERE
key_id = '60f1bc53fbc40977e9ed62b8f4bc4e090d3b3f6cd542b44a80ec15483c0b266c'
AND (
token = 'Js/EWxeDmLCSRaoIYOgZHH7r/NBMd+hywUKdCUnCKBM='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)