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 'AND SP.product_id = products_id LEFT JOIN cutoff AS CO ON CO.school_id = AND CO' at line 1

select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, SP.price, CO.cutoff_date from products p, products_description pd LEFT JOIN school_price AS SP ON SP.school_id = AND SP.product_id = products_id LEFT JOIN cutoff AS CO ON CO.school_id = AND CO.product_id = products_id where p.products_status = '1' and p.products_id = '178' and pd.products_id = p.products_id and pd.language_id = '1'

[TEP STOP]