How are you passing in 1,3,6,7,10 to your query in this example?
You need to get those values into a seperate table, or some sort of virtual function driven table. Then its something like:
select id from <new table> where id not in (select id from <existing table>)