UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'cfWc2dxiO0EIgqkH53TQ1/+3Oc08eJz1hdN7yS/u55k='
WHERE
key_id = '4fe233adbdfa1b4dd73960d8579fa6c4391119d439689ec2b9733cd4eb523e02'
AND (
token = 'cfWc2dxiO0EIgqkH53TQ1/+3Oc08eJz1hdN7yS/u55k='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)