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 = 'de' 
  LEFT JOIN cscart_ult_product_prices shared_prices ON shared_prices.product_id = cscart_products.product_id 
  AND shared_prices.company_id = 1 
  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 = 1 
  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 = 509 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = 8364 
  AND cscart_seo_names.type = 'p' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'de' 
  AND cscart_seo_names.company_id = 1 
  LEFT JOIN cscart_discussion ON cscart_discussion.object_id = cscart_products.product_id 
  AND cscart_discussion.object_type = 'P' 
  AND cscart_discussion.company_id = 1 
WHERE 
  cscart_products.product_id = 8364 
  AND (
    companies.status = 'A' 
    OR cscart_products.company_id = 0
  ) 
GROUP BY 
  cscart_products.product_id

Query time 0.00110

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 2
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
8364 STG-A-GRUN P A 1 0.00 -5.00 16.000 0 0 0 0.00 0 1454150266 1743601011 0 N N N B 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;} 10 N 0 19 10 activity N [] 0 N N 0 0 de Untergrund <p style="text-align: justify;">Dieses Produkt eignet sich zum Grundieren von Oberflächen im Innen- und Außenbereich, durch die Verwendung von hochwertigen Acrylharzen. Es garantiert eine hohe Haftfähigkeit und schafft eine einheitliche, wasserbeständige Beschichtung.</p> <h2>Anwendung</h2> <p style="text-align: justify;">Zum Grundieren verschiedener Untergründe wie z.B. Beton, Porenbeton, Gipskartonplatten, Farbschichten, Tapeten sowie Ausgleichsmassen und selbstnivellierende Fußböden. Es vermindert die Wasseraufnahme, verbessert die Haftfähigkeit, beseitigt Staubentwicklung &nbsp;und vermindert das Abreiben des Untergrundes.&nbsp;</p> <h2>Verarbeitungshinweise</h2> <p style="text-align: justify;">Vor Beginn die zu grundierende Oberfläche von Staub, Schmutz, Öl, Fett, usw. reinigen. Die Grundierung mit Pinsel, Rolle oder auch im Spritzverfahren auftragen. Bei sehr stark saugenden Oberflächen sollte mehrfach gestrichen werden. Bei der Anwendung auf Gipskartonplatten ist eine Verdünnung mit Wasser im Verhältnis 1:1 empfohlen. Das Auftragen von Folgeschichten sollte nach Ablauf von 4 Stunden erfolgen. Während des Grundierens sollte die Oberflächentemperatur des Untergrundes nicht unter +5°C und nicht über +30°C liegen.&nbsp;</p> <h2>Verbrauchsmenge</h2> <p style="text-align: justify;">0,05-0,2 l/m²</p> <h2>Lagerung</h2> <ul style="text-align: justify;"> <li>Das Produkt bei einer Raumtemperatur zwischen +5° und +30°C in der Originalverpackung trocken lagern.&nbsp;</li> <li>Ungeöffnete Kanister sind 12 Monate ab Produktionsdatum haltbar. Produktionsdatum s. Verpackung.&nbsp;</li> <li>Für Kinder unzugänglich aufbewahren.</li> <li>Bei Augenkontakt sofort mit reichlich Wasser ausspülen und einen Arzt aufsuchen</li> </ul> UNTERGRUND ✔ gute Ergiebigkeit ✔ breiter Verwendungsbereich ✔ für innen und außen geeignet | Schauen Sie jetzt vorbei ! ✉ info@baubay.de UNTERGRUND | bei baubaY.de ! 5L <p style="background: #ddd; text-align: justify;"><strong>Verbrauchsmenge: 0,05-0,20 <sup>l</sup>/<sub>m<sup>2</sup></sub></strong></p> 19.320000 509M 429990 baubaY.de 521 untergrund 501/502/509 B