UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'GGNrChsCDH/at2nGf4DlQhGeyqN8oEr4iG1Z2YjNTfw=' 
WHERE 
  key_id = '292a1f1fffda335720af6e16bc11d947ac21270b62f671bb27fb7c53c1cac2ab' 
  AND (
    token = 'GGNrChsCDH/at2nGf4DlQhGeyqN8oEr4iG1Z2YjNTfw=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00021