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

Query time 0.00129

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 18
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
8295 ATR-OID8888 P A 1 0.00 0.00 2.000 0 0 0 0.00 0 1376863200 1743601016 0 N N N O N R N N N Y 10 0 N 1 16 1 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;} 3 N 0 0 1 activity Y {"817974407":{"product_id":"9870","amount":"0","modifier":"0","modifier_type":"A"}} 0 N N 0 0 en Insect screen for roof window <h2 style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 20px 0px 10px; color: rgb(0, 136, 204); font-size: 24px; font-family: &quot;Source Sans Pro&quot;, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif; padding: 5px 0px; position: relative; line-height: 1.26; border-bottom: 1px solid rgb(217, 219, 221);">Insect screen for roof windows - reliable protection against insects</h2> <p style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 15px; margin: 0px; padding: 6px 0px; text-align: justify;">Spring and summertime tempt us to open our windows more often and enjoy the warm air. But with fresh air come also small creatures that are not necessarily welcome in our homes, especially in the bedroom. We have a reliable solution for this. Thanks to the&nbsp;<strong style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">insect screen</strong>, from now it is possible to rest well on warm nights with the roof window open without mosquitoes and co. robbing us of our sleep.<br style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" /> <br style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" /> This product fits most available roof window brands: FAKRO, VELUX, OptiLIGHT, RoofLITE +, DAKEA, DAKSTRA, KEYLITE, STARLITE, MAGNETIC, BALIO, SOLSTRO, IMFENSTER, AURA, RoofART, AVALINE, ROTO. It is the only accessory that is attached to the inner lining and not to the window sash. Thus it protects against annoying insects even when the window is open.</p> <p style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 15px; margin: 0px; padding: 6px 0px; text-align: justify;"><img alt="Insect screen for roof windows" src="https://d2d2yzufo5fwh3.cloudfront.net/images/products/rooflite/zia/Moustiquaire_pour_fen%C3%AAtre_de_toit_.jpg?1635408820596" /></p> <p style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 15px; margin: 0px; padding: 6px 0px; text-align: justify;">&nbsp;</p> <h2 style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 20px 0px 10px; color: rgb(0, 136, 204); font-size: 24px; font-family: &quot;Source Sans Pro&quot;, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif; padding: 5px 0px; position: relative; line-height: 1.26; border-bottom: 1px solid rgb(217, 219, 221);">Product design and its operation</h2> <p style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 15px; margin: 0px; padding: 6px 0px; text-align: justify;">In contrast to simple self-adhesive fly screens, Rooflite+ insect screens are made of high-quality aluminum frames in combination with hard-wearing functional net fabrics. This high-quality fine-meshed black fabrics keeps insects away, but still let pass a lot of light and air. The aluminum side rails allow the insect screen to open and close smoothly. When not in use, it's conveniently stowed away in the top casing, so it does not have to be removed after the season. This product is manually operated - simply grab the control bar and pull it up or down.<br style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" /> <br style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" /> By large or high-mounted roof windows, the insect net can be operated with a special telescopic operation rod, which you can purchase in our online shop</p> <h2 style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 20px 0px 10px; color: rgb(0, 136, 204); font-size: 24px; font-family: &quot;Source Sans Pro&quot;, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif; padding: 5px 0px; position: relative; line-height: 1.26; border-bottom: 1px solid rgb(217, 219, 221);">Size and installation of insect&nbsp;screens for roof windows</h2> <p style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 15px; margin: 0px; padding: 6px 0px; text-align: justify;">The product offered is ready for installation and has all the necessary elements.<br style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" /> It is available in different sizes. Using the illustration below, measure the width and height of the window opening on which the insect screen is to be mounted and use these measurements to select the appropriate size. Insect screens are mounted on the wall and not on the window frame!</p> <p style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 15px; margin: 0px; padding: 6px 0px; text-align: justify;">When measuring, make sure that there are no differences in height of the opposite walls.</p> <p style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 15px; margin: 0px; padding: 6px 0px; text-align: justify;"><img alt="Fitting the insect screen" src="https://d2d2yzufo5fwh3.cloudfront.net/images/products/rooflite/zia/insect_screen_montage_tips.png?1635415698481" /></p> <p style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 15px; margin: 0px; padding: 6px 0px; text-align: justify;">&nbsp;</p> <p style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 15px; margin: 0px; padding: 6px 0px; text-align: justify;"><em style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">If in doubt, please contact us by phone or email (info@baubay.de) we will help you choose the right size.</em></p> <h2 style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 20px 0px 10px; color: rgb(0, 136, 204); font-size: 24px; font-family: &quot;Source Sans Pro&quot;, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif; padding: 5px 0px; position: relative; line-height: 1.26; border-bottom: 1px solid rgb(217, 219, 221);">Universal product</h2> <p style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 15px; margin: 0px; padding: 6px 0px; text-align: justify;">This insect screen is truly a&nbsp;<strong style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">universal product</strong>&nbsp;that is ideal for any room in the home or office and does not interfere with any other window accessory, thanks to the fact that it is mounted on the wall and not on the window. It works perfectly in combination with, among others: blackout blinds, venetian blinds, awnings, etc. It is suitable for rooms such as:</p> <ul style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding-right: 0px; padding-left: 20px; margin: 0px; list-style: none; font-family: &quot;Open Sans&quot;, sans-serif;"> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Bedroom,</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Livingroom,</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Children's room,</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Kitchen,</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Bathroom,</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Home Office.</li> </ul> <h2 style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 20px 0px 10px; color: rgb(0, 136, 204); font-size: 24px; font-family: &quot;Source Sans Pro&quot;, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif; padding: 5px 0px; position: relative; line-height: 1.26; border-bottom: 1px solid rgb(217, 219, 221);">The most important features of the insect screen</h2> <ul style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding-right: 0px; padding-left: 20px; margin: 0px; list-style: none; font-family: &quot;Open Sans&quot;, sans-serif;"> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">100% insect-proof with the roof window open,</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Easy to install and operate,</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Can be completely opened or closed (no disassembly necessary after summer season),</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Infinitely adjustable,</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Light and air permeable net fabrics,</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Manually operated with a control bar,</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Works with suitable telescopic operating rod, for large or high installed windows</li> <li style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-size: 15px; margin: 0px; padding: 2px 0px; list-style-position: initial; list-style-image: initial; list-style-type: inherit; text-align: justify;">Can be combined with any accessories for roof windows.</li> </ul> fait de matériaux de haute qualité, tissu filet durable et transparent, facile à nettoyer, permet d'ouvrir la fenêtre tout en se protégeant des insectes, permet de profiter de la vue sur l’extérieur et de l’air frais, installation à l'envers possible sur Fabriquée à partir de matériaux de haute qualité, est durable et pratique. Elle compléte la fenêtre de toit. Même en position complètement abaissée, elle vous permet d'ouvrir la fenêtre sans bloquer la ventilation et le flux d'air sans être dérangé par le Moustiquaire pour fenêtres de toit. 240.000000 359,365,369,986,993,987,988 328007 baubaY.de 126 insect-screen-for-roof-windows 261/901/988 B