Added new argument subTableQuery for reports, to control how sub-tables are queried. See Reports.
subTableQuery