SELECT * from tabella WHERE campo1 != '$var1' and campo2 != '$var2'