$query= "select * from tabella where campo1 <> campo2";