UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'LxTVeiteXPUS56uOnYua6X+wfDNQJKmRCyLLJ/gGc/4='
WHERE
key_id = '26ed04a9239fbac9d72bf8f59aa03dae5180a934b4ce59de9bfe2ab3487cc94e'
AND (
token = 'LxTVeiteXPUS56uOnYua6X+wfDNQJKmRCyLLJ/gGc/4='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)