Issues with Pagination not getting total query results on pages after 1