UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+FS9V6N35t3t+P2EWJ+yCS0ws3sNJAyppoTfpkiZs7M='
WHERE
key_id = '244526c8d4bfa58fea636d0aaa4c831ceaa74e35a970a87aa8b6498dafcec16d'
AND (
token = '+FS9V6N35t3t+P2EWJ+yCS0ws3sNJAyppoTfpkiZs7M='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)