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 = 461 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = 10713 
  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 = 10713 
  AND (
    companies.status = 'A' 
    OR cscart_products.company_id = 0
  ) 
GROUP BY 
  cscart_products.product_id

Query time 0.00131

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 range usergroup,product_id,company_id,lower_limit,usergroup_id usergroup 13 2 Using where; Using join buffer (flat, BNL join)
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 pt 3 const 3
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
10713 ODV-FL P A 1 0.00 0.00 0.000 0 0 0 0.00 0 1690627191 1743601051 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;} 0 M 0 26 0 activity N [] 0 N N 0 0 en Flashing for VELUX roof windows <p style="text-align: justify;">Flashings are essential for insulating the connection between the roof window and the roof. Only by using a flashing will water running off the roof surface be transported sideways around the roof window, preventing water, dust or snow from entering the roof. A flashing must be purchased separately for most of roof windows. Because roofing materials can very different, Velux tries to offer the right product for every roofing material.</p> <p style="text-align: justify;">Flashing and window's profile are made as standard of requiring no maintenance aluminum sheet in Grey (RAL 7043).</p> <h2 style="text-align: justify;">Flashing for flat and profiled roofing materials</h2> <p style="text-align: justify;"><strong>EDZ</strong></p> <ul> <li>Flashing for installing VELUX roof windows into flat and profiled roofing materials with thickness from 15 - 45mm in profile (from 4.5 cm height, select EDW).</li> <li>Suitable for roofing materials such as: Interlocking pantiles, flat roofing tiles, flat cremains, reform pantiles, Frankfurt pantiles, Taunus pantiles, flat tiles, Heidelberg pantiles, plain tiles in crown roofing.</li> <li>Suitable for roof pitches 20 - 90 degrees.</li> </ul> <p><strong>EDW</strong></p> <ul> <li>Flashing for installing VELUX roof windows into flat and profiled roofing materials with thickness from 15-120mm in profile.</li> <li>Suitable for roofing materials such as: monastery tile, monastery tile, monk and nun, Florento tile, Mistral tile, Toledo tile as well as thatch, straw, corrugated sheets 5-, 6-, 8-wave, Berlin wave.</li> <li>Suitable for roof pitches 15 - 90 degrees.</li> </ul> <p><strong>EDT</strong></p> <ul> <li>Flashing for installing VELUX roof windows into flat interlocking tiles with a max thickness from 15-40 mm.</li> <li>Suitable for flat tiles such as: Koramic Wienerberger Orea 9, Monier Braas Turmalin, Braas Teviva, Braas Reviva, Creaton Domino, Nelskamp Nibra, Wienerberger Koramic Acuta, Erlus Linea and many more.</li> <li>For roof pitches: 20°-90</li> </ul> <p><strong>EDJ </strong></p> <ul> <li>Flashing for installing VELUX roof windows into flat interlocking tiles and profiled roofing material with thickness from 15-90 mm</li> <li>Suitable for roof tiles and concrete roof tiles such as: Interlocking tiles, flat roof tiles, flat cremone, reform tile, Frankfurt tile, flat tile, Heidelberg tile, corrugated sheets 5-, 6-, 8-wave, Berlin wave, plain tile in crown and double covering.</li> <li>Suitable for roof pitches 20 - 90 degrees.</li> </ul> <h2>Flashing frame for flat roofing materials</h2> <p><strong>EDS</strong></p> <ul> <li>Flashing for installing VELUX roof windows into flat roofing materials up to 16mm high (2 x 8mm). Side panels with continuous standing seam.</li> <li>Suitable for: Slate (e.g. German and old German roofing), wooden shingles, roof tiles.</li> <li>Suitable for roof pitches 15 - 90 degrees.</li> </ul> <p><strong>EDL</strong></p> <ul> <li>Flashing for installing VELUX roof windows into flat roofing materials up to 16mmm high (2 x 8mm). Side parts as layered pieces without standing seam.</li> <li>Suitable for: Slate (e.g. rectangular template double roofing), wood shingles, roofing felt, roofing sheets, bitumen shingles, bitumen sheeting.</li> <li>Suitable for roof pitches 15 - 90 degrees.</li> </ul> <p><strong>EDN</strong></p> <ul> <li>Flashing for installing VELUX roof windows into flat flashing materials up to 16mm high (2 x 8mm).</li> <li>Suitable for: Slate (e.g. rectangular template double roofing), wood shingles, roofing felt, roofing sheets, bitumen shingles, bitumen membranes.</li> <li>Suitable for roof pitches 20 - 90 degrees.</li> </ul> <p><strong>EDB</strong></p> <ul> <li>Flashing for installing VELUX roof windows into flat flashing materials up to 38mm high (2 x 19mm)</li> <li>Suitable for: Plain tile in double covering.</li> <li>Suitable for roof pitches 25 - 90 degrees</li> </ul> <p><strong>EDP</strong></p> <ul> <li>Flashing for installing VELUX roof windows into flat roof tiles without interlocking, with double overlap Maximum thickness: 28 mm (2 x 14mm)</li> <li>Maximum length of tiles: 300 mm</li> <li>Suitable for roof pitches 20-90 degrees.</li> </ul> <p><strong>EDQ</strong></p> <ul> <li>Unique mounting solution for roofing in standing seam</li> <li>Allows mounting with a wide range of standing seam roofing of seam heights 25-40mm</li> <li>Suitable for roof pitches 15-90 degrees</li> </ul> <h2>Additional procuts</h2> <p><strong>Underfelt collar BFX 1000</strong></p> <p>The foil flashing serves as a reliable seal between the roof window and the sub-roof. The adjustable rain gutter directs water flowing down from above away from the roof window.</p> <p><strong>Insulation collar BDX 2000</strong></p> <p>In addition to the BFX 1000 connection collar (foil connection and water drainage gutter), includes an insulation frame made of flexible foam for a tight and secure fit on the roof structure.</p> <p><strong>Vapour Barrier BBX</strong></p> <p>The vapor barrier apron provides an airtight and vapor-tight connection to the roof-side airtight layer and vapor barrier (including adhesive tape). Foil collar matched to the window size with welded corners and clamping profiles.</p> 0.000000 959 120502 baubaY.de 112 velux-flashing 261/959 D