1054 - Unknown column 'p.products_id' in 'on clause'
select
distinct p.products_model,
pd.products_name,
m.manufacturers_name,
p.products_quantity,
p.products_shippingtime,
p.products_fsk18,
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_ws_usk,
p.products_date_available,
p.products_tax_class_id from products p left join manufacturers m using(manufacturers_id), products_description pd left join specials s on p.products_id = s.products_id, categories c, products_to_categories p2c where p.products_status = '1' and p.products_fsk18!=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 p.products_date_available > now()
and p2c.products_id = p.products_id and p2c.products_id = pd.products_id and (p2c.categories_id = '278' or p2c.categories_id = '279' or p2c.categories_id = '280' or p2c.categories_id = '281' or p2c.categories_id = '282' or p2c.categories_id = '283' or p2c.categories_id = '284' or p2c.categories_id = '293') group by pd.products_name order by pd.products_name
[XT SQL Error]