Problem mit MySQL 5
Hallo zusammen,
ich muss einige Queries MySQL 5 - kompatibel machen und scheitere gerade am Letzten.
Kann mir bitte jemand helfen und den folgenden Query korrigieren. Ich habe offensichtlich Tomaten auf den Augen. Danke im Voraus!!
Query:
SELECT COUNT(p.products_id) AS total SELECT DISTINCT p.products_model, pd.products_name, m.manufacturers_name, p.products_quantity, p.products_image, p.products_weight, pd.products_short_description, pd.products_description, m.manufacturers_id, p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price FROM products AS p LEFT JOIN manufacturers AS m using(manufacturers_id), products_description AS pd LEFT JOIN specials AS s ON (p.products_id = s.products_id) , categories AS c , products_to_categories AS p2c
Fehlermeldung: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 'SELECT DISTINCT p.products_model, pd.products_name, m.manufacturers_name, p.prod' at line 1
Unknown column 'p.products_id' in 'on clause'
|