UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'kekgv3hvXpk5XPHMQDwo3EXHHvWvjQIk5siiUHGhUpY='
WHERE
key_id = '44dbb5890c0d3946f89ab2e09197d8b5a44551f614a1743b98c433c6eae48a06'
AND (
token = 'kekgv3hvXpk5XPHMQDwo3EXHHvWvjQIk5siiUHGhUpY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)