Ah sorry, you said result…
Here’s the query that was returned in $wp_query->request after the query_posts function:
SELECT SQL_CALC_FOUND_ROWS jt_posts.* FROM jt_posts INNER JOIN jt_term_relationships ON (jt_posts.ID = jt_term_relationships.object_id) INNER JOIN jt_term_taxonomy ON (jt_term_relationships.term_taxonomy_id = jt_term_taxonomy.term_taxonomy_id) WHERE 1=1 AND jt_term_taxonomy.taxonomy = ‘post_tag’ AND jt_term_taxonomy.term_id IN (‘1012’, ‘1223’) AND(post_type = ‘post’ OR post_type = ‘page’) AND (jt_posts.post_status = ‘publish’) GROUP BY jt_posts.ID ORDER BY jt_posts.post_date DESC LIMIT 0, 10
And here it is with the category:
SELECT SQL_CALC_FOUND_ROWS jt_posts.* FROM jt_posts INNER JOIN jt_term_relationships ON (jt_posts.ID = jt_term_relationships.object_id) INNER JOIN jt_term_taxonomy ON (jt_term_relationships.term_taxonomy_id = jt_term_taxonomy.term_taxonomy_id) WHERE 1=1 AND jt_term_taxonomy.taxonomy = ‘category’ AND jt_term_taxonomy.term_id IN (’25’) AND jt_term_taxonomy.taxonomy = ‘post_tag’ AND jt_term_taxonomy.term_id IN (‘1012’, ‘1223’) AND(post_type = ‘post’ OR post_type = ‘page’) AND (jt_posts.post_status = ‘publish’) GROUP BY jt_posts.ID ORDER BY jt_posts.post_date DESC LIMIT 0, 10
Running the queries on the database directly in PHPMyAdmin gives the same result so I’m sure the query is working correctly. It seems to be some kind of bug in the way the query is built in WordPress itself.
I remember reading something about tag and category combinations not working well unless you doubled the tag elements or had more than one, but I already have more than one… I don’t know what to do if anything.