add category to query
pagination