SELECT 
  cscart_product_feature_variant_descriptions.variant, 
  cscart_product_feature_variants.variant_id, 
  cscart_product_feature_variants.feature_id, 
  cscart_product_features_values.variant_id as selected, 
  cscart_product_features.feature_type, 
  cscart_seo_names.name as seo_name, 
  cscart_seo_names.path as seo_path, 
  cscart_product_feature_variants.mdc_variant 
FROM 
  cscart_product_feature_variants 
  LEFT JOIN cscart_product_feature_variant_descriptions ON cscart_product_feature_variant_descriptions.variant_id = cscart_product_feature_variants.variant_id 
  AND cscart_product_feature_variant_descriptions.lang_code = 'en' 
  LEFT JOIN cscart_product_features_values ON cscart_product_features_values.variant_id = cscart_product_feature_variants.variant_id 
  AND cscart_product_features_values.lang_code = 'en' 
  AND cscart_product_features_values.product_id = 567 
  AND cscart_product_features_values.feature_id = cscart_product_feature_variants.feature_id 
  LEFT JOIN cscart_product_features ON cscart_product_features.feature_id = cscart_product_feature_variants.feature_id 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = cscart_product_feature_variants.variant_id 
  AND cscart_seo_names.type = 'e' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'en' 
WHERE 
  1 
  AND cscart_product_feature_variants.feature_id IN (
    1041, 1132, 1024, 1122, 1032, 1036, 1026, 
    1033, 1028, 1130, 1119, 1120, 1040, 
    1025, 1029, 1030, 1039, 1131, 1038
  ) 
GROUP BY 
  cscart_product_feature_variants.variant_id 
ORDER BY 
  cscart_product_feature_variants.position, 
  cscart_product_feature_variant_descriptions.variant

Query time 0.00713

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "4838.23"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_product_feature_variants",
              "access_type": "range",
              "possible_keys": [
                "PRIMARY",
                "feature_id"
              ],
              "key": "feature_id",
              "used_key_parts": [
                "feature_id"
              ],
              "key_length": "3",
              "rows_examined_per_scan": 430,
              "rows_produced_per_join": 430,
              "filtered": "100.00",
              "index_condition": "(`danishecarter_latest`.`cscart_product_feature_variants`.`feature_id` in (1041,1132,1024,1122,1032,1036,1026,1033,1028,1130,1119,1120,1040,1025,1029,1030,1039,1131,1038))",
              "cost_info": {
                "read_cost": "535.01",
                "eval_cost": "86.00",
                "prefix_cost": "621.01",
                "data_read_per_join": "1M"
              },
              "used_columns": [
                "variant_id",
                "feature_id",
                "position",
                "mdc_variant"
              ]
            }
          },
          {
            "table": {
              "table_name": "cscart_product_feature_variant_descriptions",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "variant_id",
                "lang_code"
              ],
              "key_length": "9",
              "ref": [
                "danishecarter_latest.cscart_product_feature_variants.variant_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 430,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "430.00",
                "eval_cost": "86.00",
                "prefix_cost": "1137.01",
                "data_read_per_join": "1M"
              },
              "used_columns": [
                "variant_id",
                "variant",
                "lang_code"
              ]
            }
          },
          {
            "table": {
              "table_name": "cscart_product_features_values",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "fl",
                "variant_id",
                "lang_code",
                "product_id",
                "fpl",
                "idx_product_feature_variant_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "feature_id",
                "product_id",
                "variant_id",
                "lang_code"
              ],
              "key_length": "15",
              "ref": [
                "danishecarter_latest.cscart_product_feature_variants.feature_id",
                "const",
                "danishecarter_latest.cscart_product_feature_variants.variant_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 430,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "430.00",
                "eval_cost": "86.00",
                "prefix_cost": "1653.01",
                "data_read_per_join": "332K"
              },
              "used_columns": [
                "feature_id",
                "product_id",
                "variant_id",
                "lang_code"
              ]
            }
          },
          {
            "table": {
              "table_name": "cscart_product_features",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "feature_id"
              ],
              "key_length": "3",
              "ref": [
                "danishecarter_latest.cscart_product_feature_variants.feature_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 430,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "430.00",
                "eval_cost": "86.00",
                "prefix_cost": "2169.01",
                "data_read_per_join": "507K"
              },
              "used_columns": [
                "feature_id",
                "feature_type"
              ]
            }
          },
          {
            "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": [
                "danishecarter_latest.cscart_product_feature_variants.variant_id",
                "const",
                "const",
                "const"
              ],
              "rows_examined_per_scan": 5,
              "rows_produced_per_join": 2150,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "2239.22",
                "eval_cost": "430.00",
                "prefix_cost": "4838.24",
                "data_read_per_join": "3M"
              },
              "used_columns": [
                "name",
                "object_id",
                "type",
                "dispatch",
                "path",
                "lang_code"
              ]
            }
          }
        ]
      }
    }
  }
}

Result

variant variant_id feature_id selected feature_type seo_name seo_path mdc_variant
Åland Islands 18961 1036 S AX
0.000 23102 1038 23102 N
1 18914 1026 N 1
1 (None) 18936 1028 S EMISSIONSSTICKER_NONE
1 Day 19223 1041 S 1_day
10 18923 1026 N 10
100 19202 1038 N 100
1000 23184 1130 23184 N
1000 19204 1038 N 1000
1000 18907 1025 N 1000
10000 19207 1038 N 10000
10000 18913 1025 18913 N 10000
11 18924 1026 N 11
110 23260 1029 N 110
12 18925 1026 N 12
120 23253 1029 N 120
14 Days 19226 1041 19226 S 14_days
1465 23419 1038 N 1465
150000 19208 1038 N 150000
152 23404 1029 N 152
16 23427 1029 N 16
18000 23248 1038 N 18000
18000.000 23142 1038 N
184 23358 1029 N 184
185 23373 1029 N 185
2 18915 1026 N 2
2 (Red) 18935 1028 18935 S EMISSIONSSTICKER_RED
2000 23176 1130 N
2000 19205 1038 N 2000
2000 18908 1025 N 2000
20000 19209 1038 N 20000
2010 23243 1032 N 2010
2014 23225 1032 N 2014
2015 23172 1032 23172 N 2015
2017 23218 1032 N 2017
2018 23097 1032 N 2018
2019 23231 1032 N 2019
2020 23277 1032 N 2020
2021 23076 1032 N 2021
2022 23082 1032 N 2022
2165 23308 1038 N 2165
231 23344 1029 N 231
240 23324 1029 N 240
25000 19210 1038 N 25000
26000.000 23119 1038 N
271 23183 1029 23183 N 271
283 23266 1029 N 283
294 23246 1029 N 294
3 18916 1026 18916 N 3
3 (Yellow) 18934 1028 S EMISSIONSSTICKER_YELLOW
3 Days 19224 1041 S 3_days
300 23352 1029 N 300
3000 18909 1025 N 3000
302 23126 1029 N 302
310 23187 1029 N 310
315 23223 1029 N 315
324 23393 1029 N 324
331 23289 1029 N 331
338 23092 1029 N 338
340 23425 1029 N 340
345 23148 1029 N 345
350 23371 1029 N 350
3500 23261 1038 N 3500
35000.000 23107 1038 N
353 23279 1029 N 353
355 23196 1029 N 355
36000.000 23133 1038 N
368 23141 1029 N 368
375 23145 1029 N 375
382 23118 1029 N 382
390 23163 1029 N 390
4 18917 1026 N 4
4 (Green) 18933 1028 S EMISSIONSSTICKER_GREEN
405 23204 1029 N 405
5 18918 1026 N 5
50 23179 1131 23179 N
500 19203 1038 N 500
5000 19206 1038 N 5000
5000 18910 1025 N 5000
5650 23255 1038 N 5650
6 18919 1026 N 6
6000 18911 1025 N 6000
65 23306 1029 N 65
6783.000 23100 1038 N
7 18920 1026 N 7
7 Days 19225 1041 S 7_days
7000 18912 1025 N 7000
7273 23228 1038 N 7273
74 23296 1029 N 74
8 18921 1026 N 8
8124 23233 1038 N 8124
8461.000 23093 1038 N
8706 23200 1038 N 8706
8809.000 23084 1038 N
8917.000 23079 1038 N
9 18922 1026 N 9
9025 23205 1038 N 9025
96 23315 1029 N 96
A/C (man.) 18902 1024 S MANUAL_CLIMATISATION
AA 18944 1036 S AA
AC 18945 1036 S AC
Ads with pictures 19217 1040 M ads_with_pictures
Ads with video 19218 1040 M ads_with_video
Afghanistan 18948 1036 S AF
Albania 18951 1036 S AL
Algeria 19007 1036 S DZ
All Wheel Drive 23180 1132 23180 M
American Samoa 18958 1036 S AS
Andorra 18946 1036 S AD
Angola 18954 1036 S AO
Anguilla 18950 1036 S AI
Antarctica 18956 1036 S AQ
Antigua and Barbuda 18949 1036 S AG
Argentina 18957 1036 S AR
Armenia 18952 1036 S AM
Aruba 18962 1036 S AW
Asia-Pacific 18955 1036 S AP
Australia 18960 1036 S AU
Austria 18959 1036 S AT
Automatic air conditioning 18903 1024 S AUTOMATIC_CLIMATISATION
Automatic climatisation, 2 zones 18904 1024 18904 S AUTOMATIC_CLIMATISATION_2_ZONES
Automatic climatisation, 3 zones 18905 1024 S AUTOMATIC_CLIMATISATION_3_ZONES
Automatic climatisation, 4 zones 18906 1024 S AUTOMATIC_CLIMATISATION_4_ZONES
Azerbaijan 18963 1036 S AZ
Bahamas 18977 1036 S BS
Bahrain 18970 1036 S BH
Bangladesh 18966 1036 S BD
Barbados 18965 1036 S BB
Belarus 18981 1036 S BY
Belgium 18967 1036 S BE
Belize 18982 1036 S BZ
Benin 18972 1036 S BJ
Bermuda 18973 1036 S BM
Bhutan 18978 1036 S BT
Bolivia 18975 1036 S BO
Bosnia and Herzegovina 18964 1036 S BA
Botswana 18980 1036 S BW
Bouvet Island 18979 1036 S BV
BoxSemiTrailer 23094 1119 S
Brazil 18976 1036 S BR
British Indian Ocean Territory 19051 1036 S IO
Brunei Darussalam 18974 1036 S BN
Bulgaria 18969 1036 S BG
Burkina Faso 18968 1036 S BF
Burundi 18971 1036 S BI
Cambodia 19062 1036 S KH
Cameroon 18992 1036 S CM
Canada 18983 1036 S CA
Cape Verde 18998 1036 S CV
Cayman Islands 19069 1036 S KY
Central African Republic 18986 1036 S CF
Chad 19161 1036 S TD
ChassisSemiTrailer 23157 1119 S
ChassisTruck 23127 1119 S
Chile 18991 1036 S CL
China 18993 1036 S CN
Christmas Island 18999 1036 S CX
Cocos (Keeling) Islands 18984 1036 S CC
Colombia 18994 1036 S CO
Comoros 19064 1036 S KM
Compactor 23165 1119 S
Company Vehicles 19213 1039 S company_vehicles
Congo 18987 1036 S CG
Congo, the Democratic Republic of the 18985 1036 S CD
Container forklift truck 23166 1119 S
Cook Islands 18990 1036 S CK
Costa Rica 18995 1036 S CR
CĂ´te d'Ivoire 18989 1036 S CI
Croatia 19044 1036 S HR
Cuba 18997 1036 S CU
Cyprus 19000 1036 S CY
Czech Republic 19001 1036 S CZ
Dealer 19211 1039 19211 S dealer
Deep-freeze transporter 23108 1119 S
Denmark 19004 1036 S DK
Djibouti 19003 1036 S DJ
Dominica 19005 1036 S DM
Dominican Republic 19006 1036 S DO
Ecuador 19008 1036 S EC
Egypt 19010 1036 S EG
El Salvador 19157 1036 S SV
Equatorial Guinea 19034 1036 S GQ
Eritrea 19012 1036 S ER
Estonia 19009 1036 S EE
Ethiopia 19014 1036 S ET
EU Edition 19015 1036 S EU
Falkland Islands 19018 1036 S FK
Faroe Islands 19021 1036 S FO
Fiji 19017 1036 S FJ
Finland 19016 1036 S FI
Fixed 18937 1030 18937 S FIXED
FL 19019 1036 S FL
FORD_REIMO 23178 1120 23178 E fordreimo-en
Fortschritt 23174 1120 E fortschritt-en
France 19022 1036 S FR
French Guiana 19027 1036 S GF
French Polynesia 19119 1036 S PF
French Southern Territories 19162 1036 S TF
Front hydraulics 23181 1132 23181 M
Front PTO 23182 1132 23182 M
Gabon 19023 1036 S GA
Gambia 19031 1036 S GM
Georgia 19026 1036 S GE
Germany 19002 1036 19002 S DE
Ghana 19028 1036 S GH
Gibraltar 19029 1036 S GI
Greece 19035 1036 S GR
Greenland 19030 1036 S GL
Grenada 19025 1036 S GD
Guadeloupe 19033 1036 S GP
Guam 19038 1036 S GU
Guatemala 19037 1036 S GT
Guinea 19032 1036 S GN
Guinea-Bissau 19039 1036 S GW
Guyana 19040 1036 S GY
Haiti 19045 1036 S HT
Heard Island and McDonald Islands 19042 1036 S HM
Holy See (Vatican City State) 19182 1036 S VA
Honduras 19043 1036 S HN
Hong Kong 19041 1036 S HK
HU New 19214 1040 19214 M hunew
Hungary 19046 1036 S HU
Iceland 19054 1036 S IS
India 19050 1036 S IN
Indonesia 19047 1036 S ID
Inspection new 19220 1040 M inspection_new
Iran 19053 1036 S IR
Iraq 19052 1036 S IQ
Ireland 19048 1036 S IE
Israel 19049 1036 S IL
Italy 19055 1036 S IT
Jamaica 19056 1036 S JM
Japan 19059 1036 S JP
Jersey 19058 1036 S JE
Jordan 19057 1036 S JO
Kazakhstan 19070 1036 S KZ
Kenya 19060 1036 S KE
Kiribati 19063 1036 S KI
Korea, Democratic People's Republic of 19066 1036 S KP
Kuwait 19068 1036 S KW
Kyrgyzstan 19061 1036 S KG
Lao People's Democratic Republic 19071 1036 S LA
Latvia 19080 1036 S LV
Leasing only 18939 1030 S LEASING_ONLY
Lebanon 19072 1036 S LB
Lesotho 19077 1036 S LS
Liberia 19076 1036 S LR
Libyan Arab Jamahiriya 19081 1036 S LY
Liechtenstein 19074 1036 S LI
Lithuania 19078 1036 S LT
Luxembourg 19079 1036 S LU
Macao 19092 1036 S MO
Macedonia 19088 1036 S MK
Madagascar 19086 1036 S MG
Malawi 19100 1036 S MW
Malaysia 19102 1036 S MY
Maldives 19099 1036 S MV
Mali 19089 1036 S ML
Malta 19097 1036 S MT
Marshall Islands 19087 1036 S MH
Martinique 19094 1036 S MQ
Mauritania 19095 1036 S MR
Mauritius 19098 1036 S MU
Mayotte 19192 1036 S YT
Mexico 19101 1036 S MX
Micronesia 19020 1036 S FM
Moldova 19084 1036 S MD
Monaco 19083 1036 S MC
Mongolia 19091 1036 S MN
Montenegro 19085 1036 S ME
Montserrat 19096 1036 S MS
Morocco 19082 1036 S MA
Mozambique 19103 1036 S MZ
municipal vehicle 19221 1040 19221 M municipal_vehicle
Myanmar \tformerly Burma 19090 1036 S MM
Namibia 19104 1036 S NA
Nauru 19113 1036 S NR
Nepal 19112 1036 S NP
Netherlands 19110 1036 S NL
Netherlands Antilles 18953 1036 S AN
New Caledonia 19105 1036 S NC
New Zealand 19115 1036 S NZ
Nicaragua 19109 1036 S NI
Niger 19106 1036 S NE
Nigeria 19108 1036 S NG
Niue 19114 1036 S NU
No 18943 1033 S N
No climatisation 18901 1024 S NO_CLIMATISATION
Norfolk Island 19107 1036 S NF
Northern Mariana Islands 19093 1036 S MP
Norway 19111 1036 S NO
Oman 19116 1036 S OM
On request 18938 1030 S ON_REQUEST
Other agricultural vehicles 23177 1119 23177 S
Other forklift trucks 23173 1119 S
Other substructures 23101 1119 S
Pakistan 19122 1036 S PK
Palau 19129 1036 S PW
Palestinian Territory 19127 1036 S PS
Panama 19117 1036 S PA
Papua New Guinea 19120 1036 S PG
Paraguay 19130 1036 S PY
Peru 19118 1036 S PE
Philippines 19121 1036 S PH
Pitcairn 19125 1036 S PN
Poland 19123 1036 S PL
Portugal 19128 1036 S PT
Private provider 19212 1039 S private_provider
Puerto Rico 19126 1036 S PR
Qatar 19131 1036 S QA
QM 19132 1036 S QM
QN 19133 1036 S QN
QO 19134 1036 S QO
QP 19135 1036 S QP
Reduced price 19219 1040 M reduced_price
RefrigeratorBodySemiTrailer 23069 1119 S
RENAULT 23160 1120 E renault-en
Rental possible 19216 1040 19216 M rental_possible
Réunion 19136 1036 S RE
Road legal 19222 1040 M road_legal
Romania 19137 1036 S RO
Russian Federation 19139 1036 S RU
Rwanda 19140 1036 S RW
Saint Helena 19147 1036 S SH
Saint Kitts and Nevis 19065 1036 S KN
Saint Lucia 19073 1036 S LC
Saint Pierre and Miquelon 19124 1036 S PM
Saint Vincent and the Grenadines 19183 1036 S VC
Samoa 19190 1036 S WS
San Marino 19152 1036 S SM
Sao Tome and Principe 19156 1036 S ST
Saudi Arabia 19141 1036 S SA
SCANIA 23121 1120 E scania-en
SCHMITZ 23070 1120 E schmitz-en
Senegal 19153 1036 S SN
Serbia 19138 1036 S RS
Serbia and Montenegro 18996 1036 S CS
Service book maintained 19215 1040 M service_book_maintained
Seychelles 19143 1036 S SC
Sierra Leone 19151 1036 S SL
Singapore 19146 1036 S SG
Slovakia 19150 1036 S SK
Slovenia 19148 1036 S SI
Solomon Islands 19142 1036 S SB
Somalia 19154 1036 S SO
South Africa 19194 1036 S ZA
South Georgia and the South Sandwich Islands 19036 1036 S GS
South Korea 19067 1036 S KR
Spain 19013 1036 S ES
Sri Lanka 19075 1036 S LK
Standard tractor/trailer unit 23085 1119 S
Sudan 19144 1036 S SD
Suriname 19155 1036 S SR
Svalbard and Jan Mayen 19149 1036 S SJ
SwapChassisSemiTrailer 23153 1119 S
SwapChassisTruck 23120 1119 S
Swaziland 19159 1036 S SZ
Sweden 19145 1036 S SE
Switzerland 18988 1036 S CH
Syrian Arab Republic 19158 1036 S SY
Taiwan 19174 1036 S TW
Tajikistan 19165 1036 S TJ
Tanzania 19175 1036 S TZ
Thailand 19164 1036 S TH
Timber carrier 23109 1119 S
Togo 19163 1036 S TG
Tokelau 19166 1036 S TK
Tonga 19169 1036 S TO
TP 19170 1036 S TP
Trinidad and Tobago 19172 1036 S TT
Tunisia 19168 1036 S TN
Turkey 19171 1036 S TR
Turkmenistan 19167 1036 S TM
Turks and Caicos Islands 19160 1036 S TC
Tuvalu 19173 1036 S TV
Uganda 19177 1036 S UG
Ukraine 19176 1036 S UA
UM 19178 1036 S UM
United Arab Emirates 18947 1036 S AE
United Kingdom 19024 1036 S GB
Unspecified country 19197 1036 S ZZ
Uruguay 19180 1036 S UY
USA 19179 1036 S US
Used vehicle 23075 1122 23075 S
Uzbekistan 19181 1036 S UZ
VANHOOL 23154 1120 E vanhool-en
Vanuatu 19188 1036 S VU
Venezuela 19184 1036 S VE
Viet Nam 19187 1036 S VN
Virgin Islands (British) 19185 1036 S VG
Virgin Islands (U.S.) 19186 1036 S VI
VOLVO 23086 1120 E volvo-en
Wallis and Futuna 19189 1036 S WF
Western Sahara 19011 1036 S EH
Wheeled loader 23164 1119 S
WOODFORD 23167 1120 E woodford-en
Yemen 19191 1036 S YE
Yes 18942 1033 18942 S Y
YU 19193 1036 S YU
Zambia 19195 1036 S ZM
Zimbabwe 19196 1036 S ZW