Modifying query for subcategories to use the per_page json setting.