The category filter was giving error on page view reports because the category_id column does not exist in application_requests table.
I have removed the category filter from all page view reports.
https://github.com/discourse/discourse/commit/b4a8cb415e1f6168a1f48f6f0aadc7355347bb06