Ver originalSELECT * FROM tabla WHERE campo1 NOT IN('$id1','$id2','$id3') AND campo2 = 'valor' ORDER BY id ASC