SELECT 
  cscart_product_features.feature_id, 
  cscart_product_features.feature_type, 
  cscart_product_features_descriptions.description as name, 
  CASE WHEN (
    cscart_product_features.feature_type IN ('M', 'S', 'E')
  ) THEN GROUP_CONCAT(
    cscart_product_feature_variant_descriptions.variant
  ) ELSE CASE WHEN (
    cscart_product_features.feature_type IN ('O')
  ) THEN cscart_product_features_values.value_int ELSE cscart_product_features_values.value END END as val 
FROM 
  cscart_product_features 
  INNER JOIN cscart_product_features_descriptions ON cscart_product_features_descriptions.feature_id = cscart_product_features.feature_id 
  AND cscart_product_features_descriptions.lang_code = 'en' 
  INNER JOIN cscart_product_features_values ON cscart_product_features_values.feature_id = cscart_product_features_descriptions.feature_id 
  AND cscart_product_features_values.product_id = 36287 
  AND cscart_product_features_values.lang_code = 'en' 
  LEFT JOIN cscart_product_feature_variants ON cscart_product_feature_variants.variant_id = cscart_product_features_values.variant_id 
  LEFT JOIN cscart_product_feature_variant_descriptions ON cscart_product_feature_variants.variant_id = cscart_product_feature_variant_descriptions.variant_id 
  AND cscart_product_feature_variant_descriptions.lang_code = 'en' 
GROUP BY 
  cscart_product_features.feature_id

Query time 0.00161

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "33.00"
    },
    "grouping_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "6.92"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_product_features_descriptions",
            "access_type": "ALL",
            "possible_keys": [
              "PRIMARY"
            ],
            "rows_examined_per_scan": 106,
            "rows_produced_per_join": 10,
            "filtered": "10.00",
            "cost_info": {
              "read_cost": "9.79",
              "eval_cost": "1.06",
              "prefix_cost": "10.85",
              "data_read_per_join": "24K"
            },
            "used_columns": [
              "feature_id",
              "description",
              "lang_code"
            ],
            "attached_condition": "(`cscart_db`.`cscart_product_features_descriptions`.`lang_code` = 'en')"
          }
        },
        {
          "table": {
            "table_name": "cscart_product_features_values",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "lang_code",
              "product_id",
              "fpl",
              "idx_product_feature_variant_id",
              "fl"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id",
              "product_id"
            ],
            "key_length": "6",
            "ref": [
              "cscart_db.cscart_product_features_descriptions.feature_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 6,
            "filtered": "50.00",
            "cost_info": {
              "read_cost": "6.58",
              "eval_cost": "0.69",
              "prefix_cost": "18.81",
              "data_read_per_join": "276"
            },
            "used_columns": [
              "feature_id",
              "product_id",
              "variant_id",
              "value",
              "value_int",
              "lang_code"
            ],
            "attached_condition": "(`cscart_db`.`cscart_product_features_values`.`lang_code` = 'en')"
          }
        },
        {
          "table": {
            "table_name": "cscart_product_features",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id"
            ],
            "key_length": "3",
            "ref": [
              "cscart_db.cscart_product_features_descriptions.feature_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 6,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.73",
              "eval_cost": "0.69",
              "prefix_cost": "21.23",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "feature_id",
              "feature_type"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_product_feature_variants",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "variant_feature_idx",
              "idx_var_feat_pos"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id"
            ],
            "key_length": "3",
            "ref": [
              "cscart_db.cscart_product_features_values.variant_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 6,
            "filtered": "100.00",
            "using_index": true,
            "cost_info": {
              "read_cost": "1.73",
              "eval_cost": "0.69",
              "prefix_cost": "23.66",
              "data_read_per_join": "7K"
            },
            "used_columns": [
              "variant_id"
            ]
          }
        },
        {
          "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": [
              "cscart_db.cscart_product_feature_variants.variant_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 6,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.73",
              "eval_cost": "0.69",
              "prefix_cost": "26.08",
              "data_read_per_join": "51K"
            },
            "used_columns": [
              "variant_id",
              "variant",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

Result

feature_id feature_type name val
31 C Express Delivery Y
37 S Ingredients list Centella Asiatica Extract(50.47%), Aqua(Water), Butylene Glycol, Propanediol, 1,2-Hexanediol, Aloe Barbadensis Leaf Extract, Glycereth-26, Hydroxyacetophenone, Glycerin, Carbomer, Tromethamine, Panthenol, Ethylhexylglycerin, Disodium EDTA, Dipotassium Glycyrrhizate, Ammonium Polyacryloyldimethyl Taurate, Biosaccharide Gum-1, Hyaluronic Acid, Hydrolyzed Hyaluronic Acid, Sodium Hyaluronate, Hydroxyethylcellulose, Chamomilla Recutita (Matricaria) Flower Extract, Mineral Salts, Tripeptide-3, Acetyl Hexapeptide-8, Acetyl Octapeptide-3, Copper Tripeptide-1, Palmitoyl Pentapeptide-4, Palmitoyl Tetrapeptide-7, Palmitoyl Tripeptide-1, Tripeptide-1, Tripeptide-2
60 M kindcode Cruelty Free,Toxin Free,Eco Conscious
61 M Formulation Liquid
62 E Brand SKIN1004
63 S Country of Origin South Korea
65 M Key Ingredients Centella Asiatica Extract,Pink Salt,Peptide-9 Complex
68 N Net Volume
69 T Expiry or Best Before Date 07-08-2027
73 M For Concerns Excess Oil,Large Pores
74 N Net Content
112 M Benefits Skin Elasticity,Skin Firming,Skin Calming
154 E Featured Ingredient
155 C Test Promo Y
156 C Update image Y
163 M Tags k-beauty tag
167 M Sale Identifier NOHALFPRICE2207
168 T EAN 8809576261875