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 = 899 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = 9870 
  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 = 9870 
  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 13
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
9870 ATR-ZCA-200-NB P A 1 0.00 0.00 0.000 0 0 0 0.00 0 1453905492 1743601073 0 N N N B N R N N N Y 10 0 N 0 0 0 0 6 N 0 S 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 1 activity N [] 0 N N 0 0 en Telescopic pole control for roof windows and blinds <h2>This telescopic pole is dedicated for operation of hard-to-reach roof windows and blinds. It will help you to ventilate rooms, where roof windows are installed high.</h2> <p style="text-align: justify;">If your roof windows are installed so high, that their operation is difficult, problematic and not comfortable - this product is perfect for you. Thanks to it you would be able to open and close the window standing on the floor. It's neat design allows for easy and comfortable usage. What's more - you don't need separate pole for high-mounted blinds! This product will deal with it too.</p> <p style="text-align: center;"><img alt="Operating rod for Rooflite roof windows" src="https://d2d2yzufo5fwh3.cloudfront.net/images/detailed/26/Bet%C3%A4tigungsstange_f%C3%BCr_Dachfenster.jpg?t=1635400867" style="height: 400px; width: 300px;" title="ZCA pole in handle operation" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img alt="Operating pole to blinds" src="https://d2d2yzufo5fwh3.cloudfront.net/images/detailed/26/Teleskop-Bet%C3%A4tigungsstange_f%C3%BCr_Dachfenster.jpg?t=1635400867" style="width: 300px; height: 400px;" title="ZCA pole in blind's operation" /></p> <p style="text-align: justify;">Properties:</p> <ul> <li><strong>Adjustable length: 100-180 cm</strong></li> <li><strong>4 stop-positions</strong></li> <li>Easy operation: choose one of 4 stop-positions and hook the grip to the window's handle or blind's operation bar</li> <li>Perfect for roof windows mounted in staircases, high rooms, halls</li> <li>Rubber,&nbsp;non-slip grip</li> <li>Compatible with <strong><a href="https://www.baubay.de/sonnenschutz-and-rollladen-en/fur-andere-dachfenster-en/?features_hash=75-6264-6265">Dakstra, DAKEA </a>and <a href="https://www.baubay.de/roof-windows/?features_hash=13-6131">RoofLITE+</a> roof windows</strong></li> <li>Compatible with Dakstra, DAKEA, <a href="https://www.baubay.de/sonnenschutz-and-rollladen-en/fur-andere-dachfenster-en/?features_hash=75-6266"><strong>RoofLITE+ blackout blinds</strong></a></li> <li>Other compatible brands: <strong>Aron, Artens, Luxtra,</strong> <strong>Balio, Magnetic, Aveline, Tyrem, Solstro, Luminatec roof windows and blinds</strong></li> <li>Please note that this telescopic pole <u>is not compatible with other roof windows and blinds</u></li> </ul> <p style="text-align: center;"><img alt="Telescopic pole fr high-installed Rooflite roof windows" src="https://d2d2yzufo5fwh3.cloudfront.net/images/detailed/26/Griff_der_Teleskop-Bet%C3%A4tigungsstange_f%C3%BCr_Dachfenster_.jpg?t=1635400867" style="width: 300px; height: 300px;" title="Anti-slip grip" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img alt="Telescopic pole for high-installed blinds" src="https://domshop.pl/?attachment_id=63707#main" style="width: 300px; height: 300px;" title="Head compatible with window's handle and blind's operating bar" /></p> <h2>How to check the window's producer?</h2> <p style="text-align: justify;">Each roof window has a nameplate placed on the sash, where you can find the producer's name, size, serial number. Just open the window and find the nameplate.</p> <p style="text-align: justify;">If you can't localize the nameplate, or you are not sure how to read it properly - <a href="http://info@baubay.de">contact us</a>. We will gladly help.</p> <p style="text-align: justify;">&nbsp;</p> <p style="text-align: center;"><img alt="How to check wjhat size does my roof window have" src="https://d2d2yzufo5fwh3.cloudfront.net/images/products/rooflite/Nameplate%20rooflite.PNG" title="Nameplate of RooLITE and DAKSTRA roof windows" /></p> telescopic pole, operating rod, operating pole, high roof windows Problem with out-of-reach roof windows? This pole will help you to open and close even high-installed roof windows. 4 stop-positions, specially designed grip and length up to 180 cm make it usage easy anc comfortable! check it now! Telescopic pole for Dakstra, DAKEA, RoofLITE+ roof windows and blinds | baubaY.de 105.850000 359,369,986,996 78080 baubaY.de 123 pole-control-for-roof-windows-and-blinds 261/901/996 D