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

Query time 0.00132

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 0 Unique row not found
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 12
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
9823 ODV-GLL-1064B P A 1 0.00 0.00 25000.000 0 0 0 0.00 0 1452252606 1744931031 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 N 0 26 5 activity Y {"220132549":{"product_id":"10713","amount":"1","modifier":"0","modifier_type":"A"}} 0 N N 0 04.08.2022 MK - dodanie opisu na podstawie gll-b 1061 na języki: EN/DE/FR/SW 0 en VELUX GLL-B 1064 | wooden roof window with tripple, noise-reduction glass and bottom handle <h2>Original VELUX GLL-B is a super energy saving bottom-operated, wooden roof window. Tripple glazing with noise reduction guarantees calm sleep even during the rain. Easy-to-clean cover of an outside pane ensures easy maintaniance.</h2> <p style="text-align: justify;"><span class="hps">GLL-B window is also equipped</span> <span class="hps">with&nbsp;</span>integrated ventilation flap. The unique, integrated VELUX ventilation flap lets in fresh air through a dust and insect filter even when the&nbsp;window is closed. Good for rainy, cold days,&nbsp;and ensures a healthy&nbsp;indoor environment. Bottom handle allows to open and close the window with one hand. It's perfect for windows which are installed high. Centre pivot sash with 180° rotation and position's blockade ensures easy operation and cleaning of an outer pane.</p> <p style="text-align: justify;">The New Generation GLL roof window incorporates new, innovative insulation system ThermoTechnology™ and additional seal to offer superior energy efficiency through improved insulating values.&nbsp;<span class="hps">Additional</span> <span class="hps">seal</span> <span class="hps">provides the highest</span> 4 <span class="hps">class integrity</span> <span class="hps">of the window. This, together with great-U-valued tripple glazing gives a modern, super warm roof window.</span></p> <h2>Features | Why it is worth to choose VELUX 1064B?</h2> <ul> <li>Natural pine with long lasting water-based clear lacquer that protects the wood against dirt and moisture. Matches perfectly to traditional interiors;</li> <li>Double chamber glazing with a toughened outer pane for strength + easy-to-clean cover and noise reduction;</li> <li>Bottom handle;</li> <li>Sash rotation by 180° with position's blockade + child protection lock&nbsp; | easy to rotate and clean the outer glass; safety and comortable use;</li> <li>The unique, integrated ventilation | air flow even when window is closed;</li> <li>Dust and insect filter;</li> <li>Thermo Technology | transfers less energy and keeps your home warm;</li> <li>Additional seal;</li> <li>High quality pivot hinges for smooth operation</li> <li>Suitable for roofs with pitches between 15 and 90 degrees (when fitted with correct flashing);</li> <li><a href="https://www.byggbay.se/roof-window-blinds/velux/">Wide range of accessories</a>;</li> <li>Straightforward blind installation with patented mounting brackets</li> <li>10 years warranty period.</li> </ul> <h2>Standard energy glazing (--64)</h2> <p style="text-align: justify;">Extremely energy-saving glazing, which guarantees better energy efficiency and . Outer pane - tempered glass with a easy-to clean cover for easy maintainance. Acoustic insulation = Rw-35 dB level - ensures noise reduction = comfort and silence. Perfect for children's room or bedroom.</p> <h2>Flashings</h2> <h4>VELUX flashing: do I really need it?</h4> <p style="text-align: justify;">Flashings are essential for the correct installation of roof windows. Precisely designed flashing details ensure a durable and neat fit with the roofing material used. The purpose of flashing is to ensure good drainage away from the window and to provide protection from the elements.<br /> VELUX offers a range of flashings designed for different roofing materials and provide two options for installation height (standard and recessed).</p> <p style="text-align: center;"><img alt="VELUX offers a range of flashings designed for different roofing materials and provide two options for installation height of the roof window" src="/images/products/velux/descriptions/flashing_it_en.png" /></p> <h4>VELUX flashing: standard or recessed installation?</h4> <p style="text-align: justify;">Recessed installations offer a more sleek, streamlined appearance, sitting 40mm deeper in the roof structure. Recessed installations also offer greater energy efficiency, and when installed with the <a href="index.php?dispatch=products.view&amp;product_id=10095">appropriate VELUX insulation collar</a> actually offer a lower certified u-value, saving energy and providing architects with greater design flexibility.</p> <table> <tbody> <tr> <td style="text-align:center;" width="12.5%"><strong>EDZ</strong> 1000</td> <td style="text-align:center;" width="12.5%"><strong>EDW</strong> 0000</td> <td style="text-align:center;" width="12.5%"><strong>EDT</strong> 1000</td> <td style="text-align:center;" width="12.5%"><strong>EDJ</strong> 1000</td> <td style="text-align:center;" width="12.5%"><strong>EDN</strong> 1000</td> <td style="text-align:center;" width="12.5%"><strong>EDL</strong> 1000</td> <td style="text-align:center;" width="12.5%"><strong>EDS</strong> 1000</td> <td style="text-align:center;" width="12.5%"><strong>EDB</strong> 1000</td> </tr> <tr> <td style="text-align:center;"><img src="/images/products/velux/descriptions/flashing_edz.jpg" /></td> <td style="text-align:center;"><img src="/images/products/velux/descriptions/flashing_edw.jpg" /></td> <td style="text-align:center;"><img src="/images/products/velux/descriptions/flashing_edt.jpg" /></td> <td style="text-align:center;"><img src="/images/products/velux/descriptions/flashing_edj.jpg" /></td> <td style="text-align:center;"><img src="/images/products/velux/descriptions/flashing_edn.jpg" /></td> <td style="text-align:center;"><img src="/images/products/velux/descriptions/flashing_edl.jpg" /></td> <td style="text-align:center;"><img src="/images/products/velux/descriptions/flashing_eds.jpg" /></td> <td style="text-align:center;"><img src="/images/products/velux/descriptions/flashing_edb.jpg" /></td> </tr> <tr> <td colspan="8" style="text-align:center;"><strong>Underfelt collar <a href="/velux-bfx.html">BBX</a></strong></td> </tr> <tr> <td style="text-align:center;">Included</td> <td style="text-align:center;">-</td> <td style="text-align:center;">Included</td> <td style="text-align:center;">Included</td> <td style="text-align:center;">Included</td> <td style="text-align:center;">Included</td> <td style="text-align:center;">Included</td> <td style="text-align:center;">Included</td> </tr> <tr> <td colspan="8" style="text-align:center;"><strong>Installation</strong></td> </tr> <tr> <td style="text-align:center;">Standard</td> <td style="text-align:center;">Standard</td> <td style="text-align:center;">Standard</td> <td style="text-align:center;">Deeper</td> <td style="text-align:center;">Deeper</td> <td style="text-align:center;">Standard</td> <td style="text-align:center;">Standard</td> <td style="text-align:center;">Standard</td> </tr> <tr> <td colspan="8" style="text-align:center;"><strong>Purpose (type of roofing material):</strong></td> </tr> <tr> <td style="text-align:center;">profiled from 1.5 to 4.5 cm height</td> <td style="text-align:center;">profiled from 1.5 to 12 cm height</td> <td style="text-align:center;">flat &amp; thick tiles from 1.5 to 4 cm height</td> <td style="text-align:center;">profiled from 1.5 to 9 cm height</td> <td style="text-align:center;">&nbsp;slate, flat roofing materials up to 1.6 cm high (2 x 0.8 cm)</td> <td style="text-align:center;">slate, flat roofing materials up to 1.6 cm high (2 x 0.8 cm) side parts as layered pieces without standing seams</td> <td style="text-align:center;">bituminous shingles, flat roofing materials up to 1.6 cm high (2 x 0.8 cm) side parts continuous with standing seams</td> <td style="text-align:center;">slate, flat roofing materials up to 3.8 cm high (2 x 1.9 cm)</td> </tr> <tr> <td colspan="8" style="text-align:center;"><strong>Fitting for roofing material:</strong></td> </tr> <tr> <td style="text-align:center;">Interlocking panel, flat roof tile, flat cremone, reform panel, Frankfurt panel, Taunus panel, flat tile, Heidelberg panel, plain tile in crown covering</td> <td style="text-align:center;">Monastery tile, monastery tile, monk and nun, Florento tile, Mistral tile, Toledo tile as well as thatch, straw, corrugated sheets 5-, 6-, 8-flute, Berlin wave</td> <td style="text-align:center;">Koramic Wienerberger Orea 9, Monier Braas Turmalin, Braas Teviva, Braas Reviva, Creaton Domino, Nelskamp Nibra, Wienerberger Koramic Acuta, Erlus Linea and many others.</td> <td style="text-align:center;">Interlocking tiles, flat roofing tiles, flat clay tiles, reform panels, Frankfurt panels, flat tiles, Heidelberg panels, corrugated sheets 5-, 6-, 8-wave, Berlin wave, plain tiles in crown and double roofing</td> <td colspan="2" style="text-align:center;">Slate (e.g., rectangular double roofing template), wood shingles, roofing felt, roofing sheets, bituminous shingles, bituminous sheets</td> <td style="text-align:center;">Slate (e.g. German and old German roofing), wooden shingles, roof panels</td> <td style="text-align:center;">Double roofing plain tile</td> </tr> <tr> <td colspan="8" style="text-align:center;"><strong>Installation type and installation range:</strong></td> </tr> <tr> <td style="text-align:center;"><strong>Standard</strong>,<br /> suitable for <strong>20°-90°</strong> roof pitches</td> <td style="text-align:center;"><strong>Standard</strong>,<br /> suitable for <strong>15°-90°</strong> roof pitches</td> <td style="text-align:center;"><strong>Standard</strong>,<br /> suitable for <strong>20°-90°</strong> roof pitches</td> <td style="text-align:center;"><strong>Recessed</strong>,<br /> suitable for <strong>20°-90°</strong> roof pitches</td> <td style="text-align:center;"><strong>Recessed</strong>,<br /> suitable for <strong>20°-90°</strong> roof pitches</td> <td style="text-align:center;"><strong>Standard</strong>,<br /> suitable for <strong>15°-90°</strong> roof pitches</td> <td style="text-align:center;"><strong>Standard</strong>,<br /> suitable for <strong>15°-90°</strong> roof pitches</td> <td style="text-align:center;"><strong>Standard</strong>,<br /> suitable for <strong>25°-90°</strong> roof pitches</td> </tr> <tr> <td colspan="8" style="text-align:center;"><strong>Additional insulation products (sold separately):</strong></td> </tr> <tr> <td colspan="3" style="text-align:center;">Insulation frame <a href="index.php?dispatch=products.view&amp;product_id=3315">VELUX BDX 2000</a> for standard flashings,<br /> and <a href="index.php?dispatch=products.view&amp;product_id=3317">vapour barrier collar VELUX BBX</a></td> <td colspan="2" style="text-align:center;">Insulation frame <a href="index.php?dispatch=products.view&amp;product_id=10095">VELUX BDX 2000F</a> for recessed flashings,<br /> and <a href="index.php?dispatch=products.view&amp;product_id=3317">vapour barrier collar VELUX BBX </a></td> <td colspan="3" style="text-align:center;">Insulation frame <a href="index.php?dispatch=products.view&amp;product_id=3315">VELUX BDX 2000</a> for standard flashings,<br /> and <a href="index.php?dispatch=products.view&amp;product_id=3317">vapour barrier collar VELUX BBX </a></td> </tr> </tbody> </table> <h2>Technical specification</h2> <table> <tbody> <tr> <td>Technical specification:</td> <td>GLL 1064B</td> </tr> <tr> <td>Window U-value:</td> <td>1,0 W/m²K</td> </tr> <tr> <td>Glazing U-value:</td> <td>0,6 W/m²K</td> </tr> <tr> <td>Rw coefficient:</td> <td>35 dB</td> </tr> <tr> <td>Air permeability:</td> <td>Class 4</td> </tr> <tr> <td>Glazing:</td> <td>3-panes</td> </tr> <tr> <td>Inert gas filled with panes:&nbsp;</td> <td>Argon</td> </tr> <tr> <td>Total solar energy transmittance, g</td> <td>0,46</td> </tr> <tr> <td>Light transmittance, τv</td> <td>62%</td> </tr> <tr> <td>External glass toughened:</td> <td>+</td> </tr> <tr> <td>Noise Reduction</td> <td>+</td> </tr> <tr> <td>Easy-to-clean cover</td> <td>+</td> </tr> <tr> <td>Interior color:</td> <td>Pine</td> </tr> <tr> <td>Exterior color:</td> <td>Gray, RAL 7043</td> </tr> <tr> <td>Warranty:</td> <td>10 years</td> </tr> </tbody> </table> wooden roof window,The andle at the bottom,clearcoat,tripple glazing,pivot,Original Velux product, excellent thermal insulation ✓wooden roof window ✓the handle at the bottom ✓clearcoat ✓tripple glazing ✓pivot ✓original VELUX GLL window ✓ThermoTechnology ✓excellent thermal insulation VELUX roof window with tripple, noise reduction glass and bottom handle | baubaY.de 1617.000000 480,948,951,954 131124 baubaY.de roof-window-velux-gll-b-1064 261/954 B