Can you select multiple messages and then print out the contents of $in{ID} to see what it holds.
Also print out the SQL query to make sure it looks right.
I think it is something to do with the fact that @list isn't getting all the ID's
Also print out the SQL query to make sure it looks right.
I think it is something to do with the fact that @list isn't getting all the ID's