Pagination and queries on other tables is working.