UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'eIemnqGKI+OzWRPJ/BSYO1V7EIOcCrxcqbTcUUzqnDA='
WHERE
key_id = '33a3aaef4e81ff2bfd5644bc49c2a2c5441900538a956ce3f73ddfde2e687025'
AND (
token = 'eIemnqGKI+OzWRPJ/BSYO1V7EIOcCrxcqbTcUUzqnDA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)