SELECT id, count(id) as total FROM site_language WHERE defval = 1
In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column 'siorto_db.site_language.id'; this is incompatible with sql_mode=only_full_group_by