Query Error SELECT DISTINCT p.* from fs_address a INNER JOIN fs_local_districts p on a.district=p.id where 1=1 order by a.ordering asc
Array ( [0] => HY000 [1] => 3065 [2] => Expression #1 of ORDER BY clause is not in SELECT list, references column 'elise_db.a.ordering' which is not in SELECT list; this is incompatible with DISTINCT )