select p.products_id as products_id, pd.products_name, pd.products_name_seo, p.products_kod_oryginal, pd.products_description, pd.products_description_2, pd.GenArtNr, sp.*, s.*, p.grupa_foto, p.grupa_pdf, pd.products_url, p.products_price, p.products_price_2, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, p.aku, pd.seo_text, p.dostawca, kaucja_id, kaucja, memo_id, pr.ikona_big, pr.link, pr.opis, pr.img, p.id_promocji, m.manufacturers_name, m.pro, m.DLNr, m.manufacturers_id from products p left join stany_products sp using(products_id) left join promocje pr on p.id_promocji = pr.id_promocji left join manufacturers m on p.manufacturers_id = m.manufacturers_id, left join products_description pd on p.products_id = pd.products_id, left join stany s on p.pdoducts_id = s.products_id, products_to_categories_new p2c left join categories_description_new cd on p2c.categories_id = cd.categories_id, `302` where p.products_status = '1' and p.products_id = '11987' and pd.language_id = '19' and cd.language_id = '19' and p2c.products_id = p.products_id and p2c.categories_id = `302`.Node_ID and (pd.GenArtNr = `302`.GenArtNr or pd.GenArtNr = 0) and p2c.categories_id = '201'