Where is the list of IDs coming from? See, if those IDs are coming from another table, it would make sense to do 1 query instead of 2 (its a lot faster for everyone involed).
But if you're taking IDs from say, a web form, then you could do a list and query that way:
SELECT myfield FROM mytable WHERE myID IN ([comma seperated list of IDs)
So its just a matter of getting the IDs into a comma seperated list...