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 = 565 
  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, 1122, 1032, 1036, 1033, 1129, 1125, 
    1092, 1090, 1091, 1093, 1119, 1120, 
    1040, 1025, 1039, 1050, 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.00607

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "4657.91"
    },
    "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": 414,
              "rows_produced_per_join": 414,
              "filtered": "100.00",
              "index_condition": "(`danishecarter_latest`.`cscart_product_feature_variants`.`feature_id` in (1041,1122,1032,1036,1033,1129,1125,1092,1090,1091,1093,1119,1120,1040,1025,1039,1050,1038))",
              "cost_info": {
                "read_cost": "514.81",
                "eval_cost": "82.80",
                "prefix_cost": "597.61",
                "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": 414,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "414.00",
                "eval_cost": "82.80",
                "prefix_cost": "1094.41",
                "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": 414,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "414.00",
                "eval_cost": "82.80",
                "prefix_cost": "1591.21",
                "data_read_per_join": "320K"
              },
              "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": 414,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "414.00",
                "eval_cost": "82.80",
                "prefix_cost": "2088.01",
                "data_read_per_join": "488K"
              },
              "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": 2070,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "2155.90",
                "eval_cost": "414.00",
                "prefix_cost": "4657.91",
                "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 Day 19223 1041 S 1_day
100 19202 1038 N 100
1000 22957 1090 N 1000
1000 22967 1093 22967 N 1000
1000 18907 1025 N 1000
1000 19204 1038 N 1000
10000 18913 1025 N 10000
10000 22959 1090 22959 N 10000
10000 22962 1091 N 10000
10000 22965 1092 N 10000
10000 22970 1093 N 10000
10000 19207 1038 N 10000
14 Days 19226 1041 19226 S 14_days
1465 23419 1038 N 1465
14970 23380 1093 N 14970
150000 19208 1038 N 150000
18000 23248 1038 N 18000
18000.000 23142 1038 N
200 22966 1093 N 200
200 22955 1090 N 200
2000 22960 1091 N 2000
2000 22963 1092 22963 N 2000
2000 18908 1025 N 2000
2000 19205 1038 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
25000 19210 1038 N 25000
25775 23103 1093 N 25775
26000.000 23119 1038 N
26657 23400 1093 N 26657
27566 23130 1093 N 27566
27800 23385 1093 N 27800
28720 23155 1093 N 28720
29220 23390 1093 N 29220
29377 23411 1093 N 29377
29900 23383 1093 N 29900
29922 23414 1093 N 29922
3 Days 19224 1041 S 3_days
3000 18909 1025 18909 N 3000
31727 23229 1093 N 31727
32560 23214 1093 N 32560
3500 23261 1038 N 3500
35000.000 23107 1038 N
36000.000 23133 1038 N
39000 23257 1093 N 39000
500 22956 1090 N 500
500 19203 1038 N 500
5000 22958 1090 N 5000
5000 22961 1091 22961 N 5000
5000 22964 1092 N 5000
5000 22968 1093 N 5000
5000 18910 1025 N 5000
5000 19206 1038 N 5000
5650 23255 1038 N 5650
6000 18911 1025 N 6000
6783.000 23100 1038 N
7 Days 19225 1041 S 7_days
7000 18912 1025 N 7000
7050 23369 1093 N 7050
7273 23228 1038 N 7273
8000 22969 1093 N 8000
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
9025 23205 1038 N 9025
AA 18944 1036 S AA
AC 18945 1036 S AC
Ads with pictures 19217 1040 19217 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
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 23087 1125 S
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
Cabin 23168 1129 23168 M
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 23166 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
FL 19019 1036 S FL
FORD_REIMO 23178 1120 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
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 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
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
Manual gearbox 23110 1125 23110 S
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 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
Norfolk Island 19107 1036 S NF
Northern Mariana Islands 19093 1036 S MP
Norway 19111 1036 S NO
Oman 19116 1036 S OM
Other agricultural vehicles 23177 1119 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
Power Assisted Steering 23169 1129 23169 M
Private provider 19212 1039 S private_provider
Protective Roof 23170 1129 23170 M
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 M rental_possible
Réunion 19136 1036 S RE
Road legal 19222 1040 19222 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
Semi-automatic 23175 1125 S
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
Trailer coupling fix 22763 1050 S TRAILER_COUPLING_FIX
Trailer coupling preparation 22762 1050 22762 S TRAILER_COUPLING_PREPARATION
Trailer coupling, detachable 22765 1050 S TRAILER_COUPLING_DETACHABLE
Trailer coupling, swiveling 22764 1050 S TRAILER_COUPLING_SWIVELING
Trailer hitch fixed 23171 1129 23171 M
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 23167 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