I have an AJAX GET-request which should return to me the list of categories but I have got an SQL error SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column
My request URl is next: http://my-domain.com/admin/api/categories?flat=true&sortBy=depth&sortOrder=asc&fields=name,id
What is the best way to solve this problem? Should I change mysql .cnf
file or it's can be fixed in the code?