Fixed queries after ticket_category_operator refactoring