UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'GdV/lck2sYK9SeOh5b4GWtmQSk87ZfT9yTLmaEr5heI=' 
WHERE 
  key_id = 'cd19d4a59f5a10273c8c493aeeda0ec8fe8b38442a9a1dc75b01887552404cfb' 
  AND (
    token = 'GdV/lck2sYK9SeOh5b4GWtmQSk87ZfT9yTLmaEr5heI=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00022