I suppose this could be fixed by only including in the group by clause columns that are actually used in select/order by? Not sure how hard that would be, though.