UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'zvpUm3xKjpqpcWbcLpQRWZMOpDmwhJf2PDG/nRSe52I='
WHERE
key_id = '114ae36141a8a68d7c1d22cf082997a905c3e41b90c9ac4dc0fc10ac9a87e9cf'
AND (
token = 'zvpUm3xKjpqpcWbcLpQRWZMOpDmwhJf2PDG/nRSe52I='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)