1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from ((products p) left join manufacturers m using(manufacturers_id) left join m' at line 1

select distinct p.products_image, m.manufacturers_id, p.products_id, p.products_quantity, pd.products_name, p.products_price, p.products_tax_class_id, p.products_price1, p.products_price2, p.products_price3, p.products_price4, p.products_price5, p.products_price6, p.products_price7, p.products_price8, p.products_price1_qty, p.products_price2_qty, p.products_price3_qty, p.products_price4_qty, p.products_price5_qty, p.products_price6_qty, p.products_price7_qty, p.products_price8_qty, p.products_qty_blocks, from ((products p) left join manufacturers m using(manufacturers_id) left join manufacturers2 m2 using(manufacturers2_id), products_description pd) left join specials s on p.products_id = s.products_id, categories c, products_to_categories p2c where p.products_carrot = '0' and p.products_status = '1' and c.categories_status = '1' and p.products_id = pd.products_id and pd.language_id = '4' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%skyddsklädsel%' or pd.products_description like '%skyddsklädsel%' or p.products_model like '%skyddsklädsel%' or m.manufacturers_name like '%skyddsklädsel%' or p.products_id in (select products_id from products_stock where artikelnummer like '%skyddsklädsel%')) ) group by p.products_id order by pd.products_name