basic query function for forumCategory