Unable to access Settings > My Profile on a fresh installation

On a fresh installation, this is the error we get if the user clicks on Settings > My Profile.

pymysql.err.InternalError: (1055, "Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column '_72157e7dd1e4b20f.tabEnergy Point Log.creation' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by")

Any idea what could be the problem?