select
distinct p.products_model,
pd.products_name,
m.manufacturers_name,
p.products_quantity,
p.products_fsk18,
p.products_image,
p.products_weight,
p.products_shippingtime,
pd.products_short_description,
pd.products_description,
m.manufacturers_id,
p.products_id,
pd.products_name,
p.products_price,
p.products_tax_class_id from products AS p left join manufacturers AS m using(manufacturers_id) left join specials s on p.products_id = s.products_id, products_description AS pd, categories AS c, products_to_categories AS p2c where p.products_status = '1' and
p.products_id = pd.products_id
and pd.language_id = '2'
and p.products_id = p2c.products_id
and p2c.categories_id = c.categories_id and (IF(s.status, s.specials_new_products_price, p.products_price) <= 234)
union select distinct p.products_model,
pd.products_name,
m.manufacturers_name,
p.products_quantity,
p.products_fsk18,
p.products_image,
p.products_weight,
p.products_shippingtime,
pd.products_short_description,
pd.products_description,
m.manufacturers_id,
x.product_id ,
pd.products_name,
x.price ,
p.products_tax_class_id
from prices AS x left join products AS p on p.products_id = x.product_id left join manufacturers AS m using(manufacturers_id) left join specials s on p.products_id = s.products_id, products_description AS pd, categories AS c, products_to_categories AS p2c where p.products_status = '1' and
x.products_id = pd.products_id
and pd.language_id = '2'
and p.products_id = p2c.products_id
and p2c.categories_id = c.categories_id and (IF(s.status, s.specials_new_products_price, x.price) <= 234) and p.products_id = x.product_id group by pd.products_name order by pd.products_name