wrong groupby clause