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 '*) as total FROM products p LEFT JOIN manufacturers m ON (p.manufacturers_id = ' at line 1
in:
[select count(distinct *) as total FROM products p LEFT JOIN manufacturers m ON (p.manufacturers_id = m.manufacturers_id) left join products_to_categories p2c on p.products_id = p2c.products_id left join products_description pd on p.products_id = pd.products_id WHERE p.products_status = 1 AND (p.products_date_available IS NULL OR p.products_date_available <= current_date) AND pd.language_id = 1 ]