ensure loading of associated tables when column is only grouped by
Merge pull request #2329 from opf/fix/query_column_group_by

ensure loading of associated tables when column is only grouped by