UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Ax6V3DvsLbR5D3wWsSKStEPC3m9r+z4LzChoGZFgI5M='
WHERE
key_id = '71008eeb3a176ee0b5302ae813caf6ddbd9803c36b8e7b28b3f952c440756141'
AND (
token = 'Ax6V3DvsLbR5D3wWsSKStEPC3m9r+z4LzChoGZFgI5M='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)