Works like a charm! Thanks!
Oh, forgot to mention, I am using the version in the zip above.
I’m getting the same error at the top of my 404 error pages. Disappears when the plugin is disabled. Any ideas what’s causing this?
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND tt.term_id IN (1,9,12,14)' at line 1]
SELECT COUNT(tt.term_id) FROM wp_term_taxonomy tt, wp_term_relationships tr WHERE tt.taxonomy = 'category' AND tt.term_taxonomy_id = tr.term_taxonomy_id AND tr.object_id = AND tt.term_id IN (1,9,12,14)