UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'UnLtNC8EmvXzLKh0vMR4V4C1ROJgmvVOw8+9DTy/wec='
WHERE
key_id = 'fbe86b98e0e245fe47f8f790f4b05db06edc3774a6afbe064ac5e44228107f0b'
AND (
token = 'UnLtNC8EmvXzLKh0vMR4V4C1ROJgmvVOw8+9DTy/wec='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)