Invalid course_category_sub query