Sorry, I wasn't very clear. I need those groups of category ID's to be mandatory; it should match posts that have
at least one of the grouped category ID's.
So IN(1,2,3,4) would match a post in any of those categories. I want it to match a post that's in either of categories 1 or 2, AND either of categories 3 or 4.
My concern about performance is that I might be chaining lots of those statements together, like:
term_taxonomy.term_id IN([list of categories])
AND term_taxonomy.term_id IN([another list of categories])
AND term_taxonomy.term_id IN([yet another list of categories])
etc, etc
If that's not actually going to be much of a performance issue - or not one I can do much about - then it's all academic anyway..
