Error Number: 1055

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'syriuszdb3.ju_towary.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

SELECT * FROM (`ju_towary`) WHERE `id_producenta` = '12' AND ju_towary.aktywny = 1 GROUP BY `seria` ORDER BY ju_towary.priorytet DESC, ju_towary.nazwa ASC, ju_towary.id DESC