UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'WRUR1Wjwjbbq/erBhTobjlBX1sKSuluLrVe/ovj0Iig='
WHERE
key_id = '61d726c03064ac47e6efb507b19d96786f6dfaa0039bd4ac9ee78cd014393d5d'
AND (
token = 'WRUR1Wjwjbbq/erBhTobjlBX1sKSuluLrVe/ovj0Iig='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)