Код: Выделить всё
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'forum.phrases.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
SELECT `id`, `keyword`, `value`, `language` FROM `phrases` GROUP BY `language`
Код: Выделить всё
$query = $this->db->select("id, keyword, value, language")
->group_by("language")
->get("phrases")
->result();
Я не хочу менять какие-либо настройки MySQL.
Подробнее здесь: https://stackoverflow.com/questions/489 ... n-group-by
Мобильная версия