3065 - Expression #2 of ORDER BY clause is not in SELECT list, references column 'climapark_climdb.m.manufacturers_name' which is not in SELECT list; this is incompatible with DISTINCT
select distinct m.manufacturers_id as id, mi.manufacturers_id, mi.manufacturers_url, mi.manufacturers_titlos as name from products p, products_to_categories p2c, manufacturers m left join manufacturers_info mi on m.manufacturers_id = mi.manufacturers_id and mi.languages_id='1' where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '6' order by mi.manufacturers_titlos, m.manufacturers_name