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(
    CASE WHEN (
      cscart_products_categories.link_type = 'M'
    ) THEN CONCAT(
      cscart_products_categories.category_id, 
      'M'
    ) ELSE cscart_products_categories.category_id END 
    ORDER BY 
      cscart_categories.storefront_id IN (0, 1) DESC, 
      (
        cscart_products_categories.link_type = 'M'
      ) DESC, 
      cscart_products_categories.category_position ASC, 
      cscart_products_categories.category_id ASC
  ) as category_ids, 
  popularity.total as popularity, 
  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, 
  MIN(point_prices.point_price) as point_price, 
  cscart_discussion.type as discussion_type, 
  cscart_product_review_prepared_data.average_rating average_rating, 
  cscart_product_review_prepared_data.reviews_count product_reviews_count 
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_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.storefront_id IN (0, 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 = 296 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = 433 
  AND cscart_seo_names.type = 'p' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'en' 
  LEFT JOIN cscart_product_point_prices as point_prices ON point_prices.product_id = cscart_products.product_id 
  AND point_prices.lower_limit = 1 
  AND point_prices.usergroup_id IN (0, 0, 1) 
  LEFT JOIN cscart_discussion ON cscart_discussion.object_id = cscart_products.product_id 
  AND cscart_discussion.object_type = 'P' 
  LEFT JOIN cscart_product_review_prepared_data ON cscart_product_review_prepared_data.product_id = cscart_products.product_id 
  AND cscart_product_review_prepared_data.storefront_id = 0 
WHERE 
  cscart_products.product_id = 433 
  AND (
    companies.status IN ('A') 
    OR cscart_products.company_id = 0
  ) 
GROUP BY 
  cscart_products.product_id

Query time 0.00133

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "3.14"
    },
    "grouping_operation": {
      "using_filesort": false,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_products",
            "access_type": "const",
            "possible_keys": [
              "PRIMARY",
              "status"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "product_id"
            ],
            "key_length": "3",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.20",
              "prefix_cost": "0.00",
              "data_read_per_join": "4K"
            },
            "used_columns": [
              "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",
              "facebook_obj_type",
              "parent_product_id",
              "buy_now_url",
              "units_in_product",
              "show_price_per_x_units",
              "is_mobilede",
              "seller_id",
              "mdc_product_id"
            ]
          }
        },
        {
          "table": {
            "table_name": "popularity",
            "access_type": "const",
            "possible_keys": [
              "PRIMARY",
              "total"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "product_id"
            ],
            "key_length": "3",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.20",
              "prefix_cost": "0.00",
              "data_read_per_join": "32"
            },
            "used_columns": [
              "product_id",
              "total"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_product_sales",
            "access_type": "const",
            "possible_keys": [
              "PRIMARY",
              "pa"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id",
              "product_id"
            ],
            "key_length": "6",
            "ref": [
              "const",
              "const"
            ],
            "rows_examined_per_scan": 0,
            "rows_produced_per_join": 1,
            "filtered": "0.00",
            "unique_row_not_found": true,
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.20",
              "prefix_cost": "0.00",
              "data_read_per_join": "16"
            },
            "used_columns": [
              "category_id",
              "product_id",
              "amount"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_product_prices",
            "access_type": "ref",
            "possible_keys": [
              "usergroup",
              "product_id",
              "lower_limit",
              "usergroup_id"
            ],
            "key": "product_id",
            "used_key_parts": [
              "product_id"
            ],
            "key_length": "3",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.00",
              "eval_cost": "0.20",
              "prefix_cost": "1.20",
              "data_read_per_join": "24"
            },
            "used_columns": [
              "product_id",
              "price",
              "percentage_discount",
              "lower_limit",
              "usergroup_id"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_product_prices), ((`danishecarter_latest`.`cscart_product_prices`.`lower_limit` = 1) and (`danishecarter_latest`.`cscart_product_prices`.`usergroup_id` in (0,0,1))), true)"
          }
        },
        {
          "table": {
            "table_name": "cscart_product_descriptions",
            "access_type": "const",
            "possible_keys": [
              "PRIMARY",
              "product_id"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "product_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.20",
              "prefix_cost": "1.40",
              "data_read_per_join": "4K"
            },
            "used_columns": [
              "product_id",
              "lang_code",
              "product",
              "shortname",
              "short_description",
              "full_description",
              "meta_keywords",
              "meta_description",
              "search_words",
              "page_title",
              "age_warning_message",
              "promo_text",
              "unit_name"
            ]
          }
        },
        {
          "table": {
            "table_name": "companies",
            "access_type": "const",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "company_id"
            ],
            "key_length": "4",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.20",
              "prefix_cost": "1.60",
              "data_read_per_join": "7K"
            },
            "used_columns": [
              "company_id",
              "status",
              "company"
            ],
            "attached_condition": "<if>(found_match(companies), ((`danishecarter_latest`.`companies`.`status` = 'A') or 0), true)"
          }
        },
        {
          "table": {
            "table_name": "cscart_products_categories",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "pt"
            ],
            "key": "pt",
            "used_key_parts": [
              "product_id"
            ],
            "key_length": "3",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.00",
              "eval_cost": "0.20",
              "prefix_cost": "2.80",
              "data_read_per_join": "16"
            },
            "used_columns": [
              "product_id",
              "category_id",
              "link_type",
              "category_position"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_categories",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "c_status",
              "p_category_id"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id"
            ],
            "key_length": "3",
            "ref": [
              "danishecarter_latest.cscart_products_categories.category_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "5.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.01",
              "prefix_cost": "3.00",
              "data_read_per_join": "172"
            },
            "used_columns": [
              "category_id",
              "storefront_id",
              "usergroup_ids",
              "status"
            ],
            "attached_condition": "((`danishecarter_latest`.`cscart_categories`.`storefront_id` in (0,1)) and ((`danishecarter_latest`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`danishecarter_latest`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`danishecarter_latest`.`cscart_categories`.`usergroup_ids`)) and (`danishecarter_latest`.`cscart_categories`.`status` in ('A','H')))"
          }
        },
        {
          "table": {
            "table_name": "cscart_seo_names",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "dispatch"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "type",
              "dispatch",
              "lang_code"
            ],
            "key_length": "206",
            "ref": [
              "const",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.05",
              "eval_cost": "0.01",
              "prefix_cost": "3.06",
              "data_read_per_join": "86"
            },
            "used_columns": [
              "name",
              "object_id",
              "type",
              "dispatch",
              "path",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "point_prices",
            "access_type": "range",
            "possible_keys": [
              "unique_key",
              "src_k"
            ],
            "key": "unique_key",
            "used_key_parts": [
              "lower_limit",
              "usergroup_id",
              "product_id"
            ],
            "key_length": "8",
            "rows_examined_per_scan": 2,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "using_join_buffer": "Block Nested Loop",
            "cost_info": {
              "read_cost": "0.05",
              "eval_cost": "0.01",
              "prefix_cost": "3.12",
              "data_read_per_join": "1"
            },
            "used_columns": [
              "product_id",
              "point_price",
              "lower_limit",
              "usergroup_id"
            ],
            "attached_condition": "(<if>(found_match(point_prices), 1, true) and <if>(is_not_null_compl(point_prices), ((`danishecarter_latest`.`point_prices`.`lower_limit` = 1) and (`danishecarter_latest`.`point_prices`.`product_id` = 433) and (`danishecarter_latest`.`point_prices`.`usergroup_id` in (0,0,1))), true))"
          }
        },
        {
          "table": {
            "table_name": "cscart_discussion",
            "access_type": "const",
            "possible_keys": [
              "object_id"
            ],
            "key": "object_id",
            "used_key_parts": [
              "object_id",
              "object_type"
            ],
            "key_length": "6",
            "ref": [
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.01",
              "prefix_cost": "3.13",
              "data_read_per_join": "1"
            },
            "used_columns": [
              "object_id",
              "object_type",
              "type"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_product_review_prepared_data",
            "access_type": "const",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "product_id",
              "storefront_id"
            ],
            "key_length": "7",
            "ref": [
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.01",
              "prefix_cost": "3.14",
              "data_read_per_join": "0"
            },
            "used_columns": [
              "product_id",
              "storefront_id",
              "average_rating",
              "reviews_count"
            ]
          }
        }
      ]
    }
  }
}

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 facebook_obj_type parent_product_id buy_now_url units_in_product show_price_per_x_units is_mobilede seller_id mdc_product_id lang_code product shortname short_description full_description meta_keywords meta_description search_words page_title age_warning_message promo_text unit_name price category_ids popularity company_name sales_amount seo_name seo_path point_price discussion_type average_rating product_reviews_count
433 mdc_1144472 P A 4 8000.02 1 0.000 0 0 0 0.00 0 1743749282 1743749282 0 N N N N N N N Y 10 0 N N 0 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 0.000 1.000 Y 1819 1144472 en AIXAM Crossline Premium **Seit 1968 und mittlerweile in der 2. Generation,** bieten wir unseren Kunden mitten in Bielefeld eine große Auswahl an günstigen EU- Neuwagen an. <br><br>Auf unserer **Homepage www.auto-owl.de** finden Sie eine große Auswahl an **Lagerfahrzeugen** und **kurzfristig verfügbaren Fahrzeugen** sowie die Möglichkeit **Bestellfahrzeuge** nach Ihren Wünschen zu konfigurieren. Bei uns erhalten Sie **volle Leistung** rund um Ihren neuen EU-Neuwagen, von der **attraktiven Autofinanzierung** über die **Inzahlungnahme** bis hin zur **Zulassung** , alles aus einer Hand ohne versteckte Kosten. Denn unsere Angebote verstehen sich inkl. Mehrwertsteuer inkl. Überführungskosten und Aufbereitung sowie aller benötigten Fahrzeugunterlagen für die Zulassung.<br><br><br><br>Weitere Bilder sowie eine detaillierte Fahrzeugbeschreibung finden Sie auf unserer Homepage www.auto-owl.de. Teilweise Beispielbilder mit Sonderausstattung. Irrtümer, Änderungen und Zwischenverkauf vorbehalten.<br><br><br><br><br><br>Laderaumabdeckung<br><br><br><br><br><br><br><br> **Ausstattungen:** <br><br><br><br> **Innen** <br><br> * Elektrische Fensterheber (Elektrische Fensterheber mit Impulsschaltung für ein Fenster vorn)<br><br> * Gepäckraumvolumen (Gepäckraumvolumen: normal (l): 453, bei umgelegter Rückbank bis zur Dachkante (l): 1.545, Frunk Kapazität (l):, Frunk Kapazität (cu ft):)<br><br> * Gepäcksicherung (Gepäcksicherung)<br><br> * Getränkehalter (Getränkehalter für Vordersitze)<br><br> * Klimaanlage (Klimaanlage)<br><br> * Laderaumabdeckung (Laderaumabdeckung fest)<br><br> * Lenkrad (Multifunktions-Kunstlederlenkrad höhenverstellbar und längsverstellbar)<br><br> * Rücksitze (Sitzbank hinten mit drei Sitzplätzen asymmetr. umlegbar)<br><br> * Sitzplätze (Fünf Sitzplätze mit Sitzkonfiguration: 2+3)<br><br> * Vordersitze (Fahrersitz Einzelsitz mit mechanischer Lehnenneigungsverstellung, mechanischer Längsverstellung und mechanischer Höhenverstellung, Beifahrersitz Einzelsitz mit mechanischer Lehnenneigungsverstellung und mechanischer Längsverstellung)<br><br><br><br> **Infotainment & Kommunikation** <br><br> * Audio Fernbedienung (Audio-Fernbedienung am Lenkrad)<br><br> * Audio-Anlage (Audio-Anlage Digitalradio)<br><br> * Bluetooth (Bluetooth)<br><br> * Bordcomputer (Bordcomputer mit Durchschnittskraftstoffverbrauch)<br><br> * Geschwindigkeitsbegrenzer (Geschwindigkeitsbegrenzer)<br><br> * Kombi-Instrumente (Kombi-Instrumente)<br><br> * Lautsprecher (Vier Lautsprecher)<br><br> * Media-Anschlüsse (Media-Anschlüsse USB vorne, Anzahl USB vorne: 1, Anzahl USB hinten: 0 und Anzahl USB 3. Reihe: 0)<br><br><br><br> **Sicherheit & Assistenz** <br><br> * Autom. Warnblinker bei starker Bremsung (Autom. Warnblinker bei starker Bremsung)<br><br> * Crash Warnsystem (Crash Warnsystem aktiviert Bremslicht, Müdigkeitswarnung, automatische Notbremsung, Bremst bei niedriger Geschwindigkeit, visuelle/akustische Warnung, Funktion über 130 km/h 78 mph, Funktion über 50 km/h 30 mph und Funktion unter 50 km/h 30 mph)<br><br> * Einparkhilfe (Einparkhilfe hinten Sensor)<br><br> * Front-Airbag (Fahrer-Airbag, Beifahrer-Airbag mit Deaktivierung für Beifahrerairbag)<br><br> * Geschwindigkeitsregelanlage (Geschwindigkeitsregelanlage)<br><br> * Hauptscheinwerfer (LED Hauptscheinwerfer mit Streuscheibe aus komplexer Oberfläche Halogen)<br><br> * Hauptscheinwerfer Regulierung (Hauptscheinwerfer Regulierung mit Dämmerungsautomatik manuell)<br><br> * Isofix Vorbereitung (Isofix)<br><br> * Kopf-/Dach Airbag (Kopf-/Dach Airbag vorn und hinten)<br><br> * Kopfstützen (2 höhenverstellbare Kopfstützen vorne, 3 höhenverstellbare Kopfstützen hinten)<br><br> * LED Licht (LED Licht Abblendlicht und Tagfahrlicht)<br><br> * Seiten-Airbag (Seiten-Airbag vorne)<br><br> * Servolenkung (Servolenkung geschwindigkeitsabhängig, elektrisch)<br><br> * Sicherheitsgurte hinten (Sicherheitsgurte hinten mit Gurtstraffer links, Sicherheitsgurte hinten mit Gurtstraffer rechts, Dreipunkt-Gurt hinten Mitte :)<br><br> * Spurassistent (Spurassistent)<br><br> * Start/Stop (Start/Stop)<br><br> * Tagfahrlicht (Tagfahrlicht)<br><br> * Warnanzeige Sicherheitsgurte anlegen (Sicherheitsgurt Warnanzeige 2)<br><br> * Windschutzscheiben-Wisch-Wasch-Anlage (Windschutzscheiben-Wisch-Wasch-Anlage)<br><br> * Zentralverriegelung (Zentralverriegelung (mit Fernbedienung))<br><br><br><br> **Außen** <br><br> * Außenspiegel (Außenspiegel elektrisch einstellbar, beheizt, schwarz auf Fahrerseite auf Beifahrerseite mit Fahrtrichtungsanzeige)<br><br> * Außentürgriffe (Außentürgriffe)<br><br> * Dachreling (Dachreling schwarz)<br><br> * Karosserieform (Sports Utility Vehicle 5-türig, Radstand: kurz, Fahrerposition: links, Plattformcode: CMF-B0)<br><br> * Lackierung (Uni-Lackierung)<br><br><br><br> **Räder & Technik** <br><br> * ABS (ABS)<br><br> * Antriebs-Schlupf-Regelung (Antriebs-Schlupf-Regelung)<br><br> * Antriebskonzept (Frontantrieb)<br><br> * Berganfahrassistent / Auto Hold (Berganfahrassistent / Auto Hold)<br><br> * Bremsassistent (Bremsassistent)<br><br> * Räder (Stahlfelgen 6,5 X 16 auf Vorderachse und Hinterachse 40,6 und 16,5)<br><br> * Reifen (Durchmesser (Zoll): 16 215 / 65 H auf Vorderachse und Hinterachse Tragfähigkeitsindex: 98 und Sommerreifen)<br><br> * Reifendruckkontrolle (Reifendruckkontrolle)<br><br> * Reifenreparaturset (Reifenreparaturset)<br><br> * Stabilitätskontrolle (Elektronische Fahrstabilitätskontrolle)<br><br><br><br> **Sonstiges** <br><br> * Emissionsniveau (Emissionsniveau : EU6 D)<br><br> * Energieeffizienzklasse (Energieeffizienzklasse: D)<br><br> * Garantie Antrieb (Garantie auf Antriebsaggregate: Dauer (Monate): 36 und Gesamtfahrleistung (km): 100.000)<br><br> * Garantie auf gesamtes Fahrzeug (Garantie g... 8000.02000000 296M 3 demo test mobilede aixam-crossline-premium 293/296 D