MYSQL5 Problem mit Abfrage

xtratz

Gesperrt
Hallo Leute,

warum ist diese Abfrage nicht MySQL5 tauglich?.
Kann mir jemand dabei helfen und vielleicht ein klein wenig Hintergrundinfos dazu geben wie ich es anders machen kann?.

PHP:
$print_catalog_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.". PDF_ALT_IMAGE .", bv.bilder_st_2 as products_image, p.products_model, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.products_status,  p.specials_new_products_price_brutto as specials_new_products_price,  s.expires_date, m.manufacturers_name
                        from  " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id , " . TABLE_BILDER_ST_VERFASSEN . " bv  where
                        p.products_id = '" . $products_id . "' and
                        p.products_id = pd.products_id
                        and pd.language_id = '" . $languages_id . "' and bv.bilder_st_kdr = p.products_id");

Gruss
 
Ja Sorry!!
Fehlermeldung ist:


PHP:
1054 - Unknown column 'p.products_id' in 'on clause'

select p.products_id, pd.products_name, pd.products_description, p.products_image, bv.bilder_st_2 as products_image, p.products_model, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.products_status, p.specials_new_products_price_brutto as specials_new_products_price, s.expires_date, m.manufacturers_name from bilder_st_verfassen bv, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_description pd left join specials s on p.products_id = s.products_id where p.products_id = '165' and p.products_id = pd.products_id and pd.language_id = '2' and bv.bilder_st_kdr = p.products_id

[TEP STOP]


Mit Mysql4 Geht es aber komischerweise.
Gruss
 
Zuletzt bearbeitet:
Zurück