try for working paged invoices, this time with subqueries