UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Pve8hIQm/GtTSxEm7dWoz2C2gP1kZ4LmJL840ZGjorA='
WHERE
key_id = '75bea3d4ab21ff8d40614a5370358d563c32d6c73ec38bc7242f46ee2bf49b41'
AND (
token = 'Pve8hIQm/GtTSxEm7dWoz2C2gP1kZ4LmJL840ZGjorA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)