Hi,
How can I rewrite this cakephp3 query so I can see list of suburbs that are distinct? Currently I get repeating suburbs in the list and groupBy doesnt work for this situation in the newer mysql.
You cant use a groupBy as the mysql version (NEWER) WONT allow code like this.
This is why I am asking for an alternative.
// ->group([‘Students.address_suburb’])->autoFields(true)
no your code wont work on the newer mysql version. My code above worked fine but you cant use groupBy like this anymore on the newer mysql that is why I go the problem.
I am wanting another way to get a list of items and remove the duplicates from the find.