Der Franzose unter den Weinen


Brände

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 '' at line 7
in:
[select p.products_image, pd.products_name, p.products_quantity, p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status, p.products_model as model from zentest_products_description pd, zentest_products p left join zentest_manufacturers m on p.manufacturers_id = m.manufacturers_id, zentest_products_to_categories p2c left join zentest_specials s on p2c.products_id = s.products_id where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '43' and (p2c.categories_id = '5' OR p2c.categories_id = '42' OR p2c.categories_id = '42' OR p2c.categories_id = '151' OR p2c.categories_id = '151' OR p2c.categories_id = '43' OR p2c.categories_id = '43' OR p2c.categories_id = '153' OR p2c.categories_id = '153' OR p2c.categories_id = '44' OR p2c.categories_id = '44' OR p2c.categories_id = '45' OR p2c.categories_id = '45' OR p2c.categories_id = '155' OR p2c.categories_id = '155' OR p2c.categories_id = '46' OR p2c.categories_id = '46' OR p2c.categories_id = '160' OR p2c.categories_id = '160' OR p2c.categories_id = '47' OR p2c.categories_id = '47' OR p2c.categories_id = '161' OR p2c.categories_id = '161' OR p2c.categories_id = '48' OR p2c.categories_id = '48' OR p2c.categories_id = '163' OR p2c.categories_id = '163' OR p2c.categories_id = '164' OR p2c.categories_id = '164' OR p2c.categories_id = '49' OR p2c.categories_id = '49' OR p2c.categories_id = '165' OR p2c.categories_id = '165' OR p2c.categories_id = '50' OR p2c.categories_id = '50' OR p2c.categories_id = '166' OR p2c.categories_id = '166' OR p2c.categories_id = '51' OR p2c.categories_id = '51' OR p2c.categories_id = '167' OR p2c.categories_id = '167' OR p2c.categories_id = '168' OR p2c.categories_id = '168' OR p2c.categories_id = '169' OR p2c.categories_id = '169' OR p2c.categories_id = '52' OR p2c.categories_id = '52' OR p2c.categories_id = '170' OR p2c.categories_id = '170' OR p2c.categories_id = '53' OR p2c.categories_id = '53' OR p2c.categories_id = '171' OR p2c.categories_id = '171') order by ]