2150 SELECT * not allowed if there is a GROUP BY

Advantage Error Guide

Problem: An SQL statement used the ‘*’ token in a SELECT list when a GROUP BY clause was specified.

Solution: You must specifically name the columns in the SELECT list when a GROUP BY clause is used. The wildcard ‘*’ token is not allowed in that context.