SELECT IFNULL(s.specials_new_products_price, p.products_price) AS price, p.products_manufacturers_model, p.products_wessel_no, p.products_min_qty, p.oe_numbers, p.usage_numbers, p.products_electro, p.products_schlagwort, p.products_pictos, p.products_hsaetze, p.products_id, p.products_ean, p.products_quantity, p.products_shippingtime, p.products_model, p.products_image, p.products_price, p.products_discount_allowed, p.products_weight, p.products_tax_class_id, p.manufacturers_id, p.products_fsk18, p.products_vpe, p.products_vpe_status, p.products_vpe_value, pd.products_name, pd.products_heading_title, pd.products_description, pd.products_short_description FROM products p JOIN products_description pd ON p.products_id = pd.products_id AND pd.language_id = '2' AND trim(pd.products_name) != '' LEFT JOIN specials s ON p.products_id = s.products_id AND s.status = '1' AND (s.start_date <= now() OR s.start_date IS NULL OR s.start_date = 0) AND (s.expires_date >= now() OR s.expires_date IS NULL OR s.expires_date = 0) JOIN products_to_categories p2c ON p2c.products_id = pd.products_id AND p2c.categories_id IN ('924') WHERE p.products_status = '1' GROUP BY p.products_id ORDER BY p.products_quantity DESC