Seaquel
MySQL error code

MySQL error 1111

MySQL server error 1111 is ER_INVALID_GROUP_FUNC_USE, reported with SQLSTATE HY000.

Invalid use of group function
Error1111
NameER_INVALID_GROUP_FUNC_USE
SQLSTATEHY000
GroupServer errors

How to fix it

In other databases

Source: MySQL 8.4 Error Reference