UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'lX3kI5b9a6v69gCgL7TJjvPAQj+LpulvpgzdYJTZLQc='
WHERE
key_id = '6f92f6310ec2f2ddd2886f38bd8c1954f684db04ef669c9ed32c2879a43ac6b3'
AND (
token = 'lX3kI5b9a6v69gCgL7TJjvPAQj+LpulvpgzdYJTZLQc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)