Currently there are queries that require the SQL mode [`ONLY_FULL_GROUP_BY`](https://mariadb.com/docs/server/server-management/variables-and-modes/sql_mode#only_full_group_by). These queries should be changed so that this SQL mode can be used. For production sites the CiviCRM documentation [recommends to disable `ONLY_FULL_GROUP_BY`](https://docs.civicrm.org/installation/en/latest/requirements/#mysql-configuration).