UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '98pBtR2/eT12HgPThim+IGVYDZldvUqAo3UEvWp75Mc='
WHERE
key_id = '88bd4202502c7c631fe651b9fcdb5d549fdae9c03b51d2e9dda00c1621dc1c8e'
AND (
token = '98pBtR2/eT12HgPThim+IGVYDZldvUqAo3UEvWp75Mc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)