Slightly optimized forum.show_category's queries.