SELECT 
  cscart_products.*, 
  cscart_product_descriptions.*, 
  MIN(
    IF(
      cscart_product_prices.percentage_discount = 0, 
      cscart_product_prices.price, 
      cscart_product_prices.price - (
        cscart_product_prices.price * cscart_product_prices.percentage_discount
      )/ 100
    )
  ) as price, 
  GROUP_CONCAT(
    IF(
      cscart_products_categories.link_type = 'M', 
      CONCAT(
        cscart_products_categories.category_id, 
        'M'
      ), 
      cscart_products_categories.category_id
    )
  ) as category_ids, 
  popularity.total as popularity, 
  IF(
    shared_prices.product_id IS NOT NULL, 
    MIN(
      IF(
        shared_prices.percentage_discount = 0, 
        shared_prices.price, 
        shared_prices.price - (
          shared_prices.price * shared_prices.percentage_discount
        )/ 100
      )
    ), 
    MIN(
      IF(
        cscart_product_prices.percentage_discount = 0, 
        cscart_product_prices.price, 
        cscart_product_prices.price - (
          cscart_product_prices.price * cscart_product_prices.percentage_discount
        )/ 100
      )
    )
  ) as price, 
  companies.company as company_name, 
  cscart_product_sales.amount as sales_amount, 
  cscart_seo_names.name as seo_name, 
  cscart_seo_names.path as seo_path, 
  cscart_discussion.type as discussion_type 
FROM 
  cscart_products 
  LEFT JOIN cscart_product_prices ON cscart_product_prices.product_id = cscart_products.product_id 
  AND cscart_product_prices.lower_limit = 1 
  AND cscart_product_prices.usergroup_id IN (0, 0, 1) 
  LEFT JOIN cscart_product_descriptions ON cscart_product_descriptions.product_id = cscart_products.product_id 
  AND cscart_product_descriptions.lang_code = 'en' 
  LEFT JOIN cscart_ult_product_prices shared_prices ON shared_prices.product_id = cscart_products.product_id 
  AND shared_prices.company_id = 2 
  AND shared_prices.lower_limit = 1 
  AND shared_prices.usergroup_id IN (0, 0, 1) 
  LEFT JOIN cscart_companies as companies ON companies.company_id = cscart_products.company_id 
  INNER JOIN cscart_products_categories ON cscart_products_categories.product_id = cscart_products.product_id 
  INNER JOIN cscart_categories ON cscart_categories.category_id = cscart_products_categories.category_id 
  AND cscart_categories.company_id = 2 
  AND (
    cscart_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_categories.usergroup_ids
    )
  ) 
  AND (
    cscart_products.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_products.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_products.usergroup_ids
    )
  ) 
  AND cscart_categories.status IN ('A', 'H') 
  AND cscart_products.status IN ('A', 'H') 
  LEFT JOIN cscart_product_popularity as popularity ON popularity.product_id = cscart_products.product_id 
  LEFT JOIN cscart_product_sales ON cscart_product_sales.product_id = cscart_products.product_id 
  AND cscart_product_sales.category_id = 922 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = 526 
  AND cscart_seo_names.type = 'p' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'en' 
  AND cscart_seo_names.company_id = 2 
  LEFT JOIN cscart_discussion ON cscart_discussion.object_id = cscart_products.product_id 
  AND cscart_discussion.object_type = 'P' 
  AND cscart_discussion.company_id = 2 
WHERE 
  cscart_products.product_id = 526 
  AND (
    companies.status = 'A' 
    OR cscart_products.company_id = 0
  ) 
GROUP BY 
  cscart_products.product_id

Query time 0.00124

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE cscart_products const PRIMARY,status,product_id_idx,status_idx PRIMARY 3 const 1
1 SIMPLE popularity const PRIMARY,total PRIMARY 3 const 1
1 SIMPLE cscart_product_sales const PRIMARY,pa PRIMARY 6 const,const 1
1 SIMPLE cscart_product_prices ref usergroup,product_id,lower_limit,usergroup_id product_id 3 const 1 Using where
1 SIMPLE cscart_product_descriptions const PRIMARY,product_id PRIMARY 9 const,const 1 Using where
1 SIMPLE shared_prices ref usergroup,product_id,company_id,lower_limit,usergroup_id product_id 3 const 2 Using where
1 SIMPLE companies eq_ref PRIMARY PRIMARY 4 const 1 Using where
1 SIMPLE cscart_products_categories ref PRIMARY,pt,product_id_idx,category_id_idx,product_category_idx,category_product_idx product_id_idx 3 const 10
1 SIMPLE cscart_categories eq_ref PRIMARY,c_status,p_category_id,idx_category_id PRIMARY 3 mahm3t_cs443.cscart_products_categories.category_id 1 Using where
1 SIMPLE cscart_seo_names const PRIMARY,dispatch PRIMARY 210 const,const,const,const,const 1 Using where
1 SIMPLE cscart_discussion const object_id,company_id object_id 10 const,const,const 1 Using where

Result

product_id product_code product_type status company_id list_price amount weight length width height shipping_freight low_avail_limit timestamp updated_timestamp usergroup_ids is_edp edp_shipping unlimited_download tracking free_shipping zero_price_action is_pbp is_op is_oper is_returnable return_period avail_since out_of_stock_actions localization min_qty max_qty qty_step list_qty_count tax_ids age_verification age_limit options_type exceptions_type details_layout shipping_params shipping_availability_id ms_type master_id unit_price aval_status facebook_obj_type cp_additinal_product_enabled cp_additinal_product_items cp_delivery_date youtube_link show_youtube_video replace_main_image size_chart_id staff_notes emo_pn emo_paczka emo_dostawca emo_kreskowy emo_nrdostawcy emo_uwagi emo_source lang_code product shortname short_description full_description meta_keywords meta_description search_words page_title age_warning_message unit_name promo_text stop_words amp_description custom_header price category_ids popularity company_name sales_amount seo_name seo_path discussion_type
526 APY B1500 P A 1 0.00 0.00 25000.000 0 0 0 0.00 0 1480588675 1743601027 0 N N N O N R N N N Y 10 0 N 0 0 0 0 6 N 0 P F default a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} 6 N 0 26 6 activity Y {"1336707857":{"product_id":"10967","amount":"1","modifier":"0","modifier_type":"A"},"1538550662":{"product_id":"9938","amount":"0","modifier":"0","modifier_type":"A"},"1078722597":{"product_id":"9892","amount":"0","modifier":"0","modifier_type":"A"},"777959239":{"product_id":"3320","amount":"0","modifier":"0","modifier_type":"A"},"1580483528":{"product_id":"3325","amount":"0","modifier":"0","modifier_type":"A"},"1795389237":{"product_id":"8295","amount":"0","modifier":"0","modifier_type":"A"},"817974407":{"product_id":"9870","amount":"0","modifier":"0","modifier_type":"A"}} 0 N N 0 01/07/2022 Prices x 1.1 AD 31.10.2023r Kołnierz jako dodatkowy produkt 0 en RoofLITE+ TRIO PVC | PVC, pivot, 3-glass roof window <p><span style="font-size:11px;"></span><span style="font-size:14px;"></span><span style="font-size:12px;"></span><img alt="" src="https://d2d2yzufo5fwh3.cloudfront.net/images/products/rooflite/trio_pvc_eng_banner.png?1612447601510" style="width: 1000px; height: 200px;" /></p> <h2>RoofLITE+ TRIO PVC: A super energy efficient triple-glazed PVC window with a reinforced frame – practicality and high performance in one.</h2> <p><strong>TRIO PVC</strong> is a window with a centre pivot (hinges mounted at half window height) manufactured from white PVC that is reinforced internally with steel profiles.</p> <p style="text-align: center;"><img alt="" src="https://domshop.pl/wp-content/uploads/2019/05/okno-dachowe-rooflite-trio-pvc-1.png" /></p> <p><strong>The TRIO PVC</strong> is set apart by its wide, reinforced frame, triple glazing, and enhanced moisture resistance. The first guarantees resistance to the most adverse weather conditions, including intense rain and strong winds.</p> <p style="margin-left: 40px;">✓ Window thermal insulation <strong>Uw= 1,1 W/m2K</strong></p> <p style="margin-left: 40px;">✓ Triple glazing with thermal insulation <strong>Ug= 0,8 W/m2K</strong></p> <p style="margin-left: 40px;">✓ Extra sliding gasket on the sash maximizes window air and water tightness.</p> <p style="margin-left: 40px;">✓ PVC</p> <p style="margin-left: 40px;">✓ Two low-emission (heat-reflective) coatings which prevent heat loss in the winter</p> <p style="margin-left: 40px;">✓ Toughened external pane</p> <p style="margin-left: 40px;">✓ Two-ventilation-positions handle, based at the bottom of the sash</p> <p style="margin-left: 40px;">✓ Durable hinges with teflon-coated rollers</p> <p style="margin-left: 40px;">✓ manufactured in Europe&nbsp;at an ISO 9001 ISO 14001 and OHSAS 18001-certified production facility.</p> <p style="margin-left: 40px;">✓ Otside color: Grey RAL 7043</p> <p style="margin-left: 40px;">✓ Installation in roof pitch: 15-90°</p> <p style="margin-left: 40px;">✓ Warranty: 10 years</p> <p style="text-align: justify;"><strong>RoofLITE+</strong> &nbsp;is a dynamic international company which operates in many European markets. Together with Velux, Altaterra Kft is part of the VKR Group – a leading manufacturer of roof windows with 75-years of industry experience. The company offers roof windows for the economic market segment. They are able to produce high quality products at a good price as a result of reducing unnecessary costs associated with the supply chain, marketing and by simplifying the range of products offered.</p> <p style="text-align: justify;">&nbsp;</p> <p style="text-align: justify;"><strong>RoofLITE+</strong> is a brand of roof windows and accessories manufactured by the Scandinavian expert in loft and attic roof windows. RoofLITE+ roof windows are reliable and their thermal insulation and tightness are thoroughly tested in accordance with the latest European standards. They are also exceptionally good value. High-quality RoofLITE+ windows are covered by a 10-year warranty. The wood used to produce them comes from independently certified, sustainably managed forests. RoofLITE+ windows are also “good price offer”.</p> <h2>Flashing for roof window: Do I need it?</h2> <p><img src="/images/products/rooflite/arl_tfx_00w.jpg" style="margin: 15px; float: right;" /></p> <p style="text-align: justify;">The flashing frame is an indispensable element for the proper installation of a roof window in the roof. It drains rain and melt water around the window and also protects it from the wind. An absolutely tight connection between the roof window and the roof can only be guaranteed with the flashing.</p> <p style="text-align: justify;">There are four available flashings to Rooflite Windows:</p> <ul style="text-align: justify;"> <li><strong>TFX</strong>: Flashing for flat and low profiled roofing materials from 1,6 up to 5,0 cm height, perfect for:<br /> plain tiles, concrete tiles, profiled ceramic tiles, or even corrugated metal roofing</li> <li><strong>UFX</strong>: Flashing for high profiled roofing materials with a tile profile from 1,5 up to 12 cm height</li> <li><strong>SFX</strong>: Flashing for slates and flat roofing with a profile height of 0-16 mm (2x8mm), with one piece-side element. Perfect for various types of flat roofing materials, including slate and bituminous shingle.</li> <li><strong>SSX</strong>: Flashing suitable for standing seam steel sheet coverings.</li> </ul> <h2>Available sizes of TRIO PINE roof window:</h2> <div style="overflow-x:auto;"> <table> <tbody> <tr> <td style="text-align: center;" width="25%">RoofLITE+<br /> size code</td> <td style="text-align: center;" width="15%"><strong>C2A</strong></td> <td style="text-align: center;" width="15%"><strong>F6A</strong></td> <td style="text-align: center;" width="15%"><strong>M4A</strong></td> <td style="text-align: center;" width="15%"><strong>M6A</strong></td> <td style="text-align: center;" width="15%"><strong>M8A</strong></td> </tr> <tr> <td style="text-align: center;"><span style="font-size:12px;">size [cm]</span></td> <td style="text-align: center;">55x78</td> <td style="text-align: center;">66x118</td> <td style="text-align: center;">78x98</td> <td style="text-align: center;">78x118</td> <td style="text-align: center;">78x140</td> </tr> <tr style="text-align: center;"> <td colspan="6">Window dimension</td> </tr> <tr> <td style="text-align: center;"><span style="font-size:12px;">Width [mm]</span></td> <td style="text-align: center;">550</td> <td style="text-align: center;">660</td> <td style="text-align: center;">780</td> <td style="text-align: center;">780</td> <td style="text-align: center;">780</td> </tr> <tr> <td style="text-align: center;"><span style="font-size:12px;">Height [mm]</span></td> <td style="text-align: center;">778</td> <td style="text-align: center;">1178</td> <td style="text-align: center;">978</td> <td style="text-align: center;">1178</td> <td style="text-align: center;">1398</td> </tr> <tr style="text-align: center;"> <td colspan="6">Glass dimension</td> </tr> <tr> <td style="text-align: center;"><span style="font-size:12px;">Width [mm]</span></td> <td style="text-align: center;">373</td> <td style="text-align: center;">483</td> <td style="text-align: center;">603</td> <td style="text-align: center;">603</td> <td style="text-align: center;">603</td> </tr> <tr> <td style="text-align: center;"> <p><span style="font-size:12px;">Height [mm]</span></p> </td> <td style="text-align: center;">590</td> <td style="text-align: center;">990</td> <td style="text-align: center;">790</td> <td style="text-align: center;">990</td> <td style="text-align: center;">1210</td> </tr> <tr> <td style="text-align: right;"> <p style="text-align: center;"><span style="font-size:12px;">Glass surface [m<sup>2</sup>]</span></p> </td> <td style="text-align: center;"><span style="font-size:12px;">0,220</span></td> <td style="text-align: center;">0,478</td> <td style="text-align: center;">0,476</td> <td style="text-align: center;">0,597</td> <td style="text-align: center;">0,729</td> </tr> </tbody> </table> </div> ✓PVC ✓rooflite ✓tripple glazing ✓pivot ✓for bedroom, kitchen, bathroom ✓easy to clean ✓moist resistant ✓U-value 1.3 ✓excellent thermal insulation ✓check it out! PVC, pivot, 3-glass TRIO PVC roof window | byggbaY.se 1276.000000 923,949,951,954 189774 baubaY.de 28 rooflite-trio-pvc-pvc-pivot-3-glass-roof-window 261/954 B