UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'MV85gVsJe1X9aHJa51+U/5cDF+NUKYjNOLrfYlxfUIw='
WHERE
key_id = '2fc93a5de18d913771f45a74b6b8c03237107617e4d8bf54f5bd7e57e31fada4'
AND (
token = 'MV85gVsJe1X9aHJa51+U/5cDF+NUKYjNOLrfYlxfUIw='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)