How to check whether the id from one table is in another table in the same database. If it is then the row should not be returned.
table1: id int(11) unsigned primary key, data varchar(25) default ''
table2: id int(11) unsigned primary key, tableone_id int(11) unsigned, another_data varchar(11) default''
the query checks whether id from table one is in table two table (the fields compared are table1.id and table2.tableone_id .