Function or column reference to '%1' must also appear in a GROUP BY

Error constant SQLE_INVALID_GROUP_SELECT
ODBC 2 state 37000
ODBC 3 state 42000
Parameter 1 Name of the column referenced directly, or in an expression, that must be in the GROUP BY clause.
Severity 15
SQLCODE -149
SQLSTATE 53003
Sybase error code 7321
 Probable cause