Pagination query for diario