SELECT 
  v.product_id, 
  v.feature_id, 
  v.value, 
  v.value_int, 
  v.variant_id, 
  f.feature_type, 
  fd.description, 
  fd.prefix, 
  fd.suffix, 
  vd.variant, 
  f.parent_id, 
  f.position, 
  gf.position as gposition 
FROM 
  cscart_product_features as f 
  LEFT JOIN cscart_product_features_values as v ON v.feature_id = f.feature_id 
  LEFT JOIN cscart_product_features_descriptions as fd ON fd.feature_id = v.feature_id 
  AND fd.lang_code = 'en' 
  LEFT JOIN cscart_product_feature_variants fv ON fv.variant_id = v.variant_id 
  LEFT JOIN cscart_product_feature_variant_descriptions as vd ON vd.variant_id = fv.variant_id 
  AND vd.lang_code = 'en' 
  LEFT JOIN cscart_product_features as gf ON gf.feature_id = f.parent_id 
  AND gf.feature_type = 'G' 
WHERE 
  f.status IN ('A') 
  AND v.product_id in (
    5008, 5969, 5024, 5017, 5002, 5007, 5019, 
    5010, 5018, 5005, 5011, 5014, 5021, 
    5022, 5006, 5009, 5013, 5004, 5020, 
    5016, 5023
  ) 
  AND f.display_on_catalog = 'Y' 
  AND (
    f.categories_path = '' 
    OR FIND_IN_SET(250, f.categories_path) 
    OR FIND_IN_SET(372, f.categories_path) 
    OR FIND_IN_SET(552, f.categories_path) 
    OR FIND_IN_SET(553, f.categories_path) 
    OR FIND_IN_SET(555, f.categories_path) 
    OR FIND_IN_SET(557, f.categories_path) 
    OR FIND_IN_SET(561, f.categories_path) 
    OR FIND_IN_SET(563, f.categories_path)
  ) 
  AND IF(
    f.parent_id, 
    (
      SELECT 
        status 
      FROM 
        cscart_product_features as df 
      WHERE 
        df.feature_id = f.parent_id
    ), 
    'A'
  ) IN ('A') 
  AND (
    v.variant_id != 0 
    OR (
      f.feature_type != 'C' 
      AND v.value != ''
    ) 
    OR (f.feature_type = 'C') 
    OR v.value_int != ''
  ) 
  AND v.lang_code = 'en' 
ORDER BY 
  fd.description, 
  fv.position

Query time 0.00394

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "213.52"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "v",
            "access_type": "range",
            "possible_keys": [
              "PRIMARY",
              "fl",
              "variant_id",
              "lang_code",
              "product_id",
              "fpl",
              "idx_product_feature_variant_id"
            ],
            "key": "idx_product_feature_variant_id",
            "used_key_parts": [
              "product_id"
            ],
            "key_length": "3",
            "rows_examined_per_scan": 343,
            "rows_produced_per_join": 111,
            "filtered": "32.52",
            "index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (5008,5969,5024,5017,5002,5007,5019,5010,5018,5005,5011,5014,5021,5022,5006,5009,5013,5004,5020,5016,5023)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
            "cost_info": {
              "read_cost": "148.46",
              "eval_cost": "11.15",
              "prefix_cost": "159.61",
              "data_read_per_join": "86K"
            },
            "used_columns": [
              "feature_id",
              "product_id",
              "variant_id",
              "value",
              "value_int",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "f",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "status"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id"
            ],
            "key_length": "3",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.v.feature_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 10,
            "filtered": "9.53",
            "cost_info": {
              "read_cost": "27.88",
              "eval_cost": "1.06",
              "prefix_cost": "198.65",
              "data_read_per_join": "4K"
            },
            "used_columns": [
              "feature_id",
              "feature_type",
              "categories_path",
              "parent_id",
              "display_on_catalog",
              "status",
              "position"
            ],
            "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`f`.`status` = 'A') and (`softwarepirmam_hewadelivard_cscart_4`.`f`.`display_on_catalog` = 'Y') and ((`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path` = '') or (0 <> find_in_set(250,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(372,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(552,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(553,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(555,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(557,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(561,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(563,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`))) and (if(`softwarepirmam_hewadelivard_cscart_4`.`f`.`parent_id`,(/* select#2 */ select `softwarepirmam_hewadelivard_cscart_4`.`df`.`status` from `softwarepirmam_hewadelivard_cscart_4`.`cscart_product_features` `df` where (`softwarepirmam_hewadelivard_cscart_4`.`df`.`feature_id` = `softwarepirmam_hewadelivard_cscart_4`.`f`.`parent_id`)),'A') = 'A') and ((`softwarepirmam_hewadelivard_cscart_4`.`v`.`variant_id` <> 0) or ((`softwarepirmam_hewadelivard_cscart_4`.`f`.`feature_type` <> 'C') and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`value` <> '')) or (`softwarepirmam_hewadelivard_cscart_4`.`f`.`feature_type` = 'C') or (`softwarepirmam_hewadelivard_cscart_4`.`v`.`value_int` <> 0)))",
            "attached_subqueries": [
              {
                "dependent": true,
                "cacheable": false,
                "query_block": {
                  "select_id": 2,
                  "cost_info": {
                    "query_cost": "0.35"
                  },
                  "table": {
                    "table_name": "df",
                    "access_type": "eq_ref",
                    "possible_keys": [
                      "PRIMARY"
                    ],
                    "key": "PRIMARY",
                    "used_key_parts": [
                      "feature_id"
                    ],
                    "key_length": "3",
                    "ref": [
                      "softwarepirmam_hewadelivard_cscart_4.f.parent_id"
                    ],
                    "rows_examined_per_scan": 1,
                    "rows_produced_per_join": 1,
                    "filtered": "100.00",
                    "cost_info": {
                      "read_cost": "0.25",
                      "eval_cost": "0.10",
                      "prefix_cost": "0.35",
                      "data_read_per_join": "440"
                    },
                    "used_columns": [
                      "feature_id",
                      "status"
                    ]
                  }
                }
              }
            ]
          }
        },
        {
          "table": {
            "table_name": "fd",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.v.feature_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 10,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.66",
              "eval_cost": "1.06",
              "prefix_cost": "202.36",
              "data_read_per_join": "24K"
            },
            "used_columns": [
              "feature_id",
              "description",
              "prefix",
              "suffix",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "fv",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id"
            ],
            "key_length": "3",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.v.variant_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 10,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.66",
              "eval_cost": "1.06",
              "prefix_cost": "206.08",
              "data_read_per_join": "12K"
            },
            "used_columns": [
              "variant_id",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "vd",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.fv.variant_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 10,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.66",
              "eval_cost": "1.06",
              "prefix_cost": "209.80",
              "data_read_per_join": "32K"
            },
            "used_columns": [
              "variant_id",
              "variant",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "gf",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id"
            ],
            "key_length": "3",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.f.parent_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 10,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.66",
              "eval_cost": "1.06",
              "prefix_cost": "213.52",
              "data_read_per_join": "4K"
            },
            "used_columns": [
              "feature_id",
              "feature_type",
              "position"
            ],
            "attached_condition": "<if>(is_not_null_compl(gf), (`softwarepirmam_hewadelivard_cscart_4`.`gf`.`feature_type` = 'G'), true)"
          }
        }
      ]
    }
  }
}

Result

product_id feature_id value value_int variant_id feature_type description prefix suffix variant parent_id position gposition
5002 741 6346 S Aromatic Notes Intense, boldly roasted, and balanced by notes of soft cocoa. It also has a hint of fruity notes and acidity 0 0
5004 741 6353 S Aromatic Notes Intense, with spicy and peppery notes, You may also find woody and earthy notes 0 0
5005 741 6356 S Aromatic Notes Intense 0 0
5006 741 6356 S Aromatic Notes Intense 0 0
5007 741 6362 S Aromatic Notes Balanced 0 0
5008 741 6356 S Aromatic Notes Intense 0 0
5009 741 6366 S Aromatic Notes Fruity, Intense 0 0
5010 741 6362 S Aromatic Notes Balanced 0 0
5011 741 6369 S Aromatic Notes Fruity 0 0
5013 741 6362 S Aromatic Notes Balanced 0 0
5014 741 6362 S Aromatic Notes Balanced 0 0
5016 741 6373 S Aromatic Notes Vanilla 0 0
5017 741 6376 S Aromatic Notes Caramel 0 0
5018 741 6362 S Aromatic Notes Balanced 0 0
5019 741 6356 S Aromatic Notes Intense 0 0
5020 741 6369 S Aromatic Notes Fruity 0 0
5021 741 6362 S Aromatic Notes Balanced 0 0
5022 741 6369 S Aromatic Notes Fruity 0 0
5023 741 6362 S Aromatic Notes Balanced 0 0
5024 741 6356 S Aromatic Notes Intense 0 0
5969 741 6362 S Aromatic Notes Balanced 0 0
5002 742 6347 S Aromatic Profile Powerful and contrasting. Very strong and boldly roasted, but with soft cocoa and subtle fruity notes to balance it out 0 0
5004 742 6354 S Aromatic Profile It delivers an exceptionally intense and syrupy coffee with a powerful bitterness and a thick, dense, and creamy body 0 0
5005 742 6357 S Aromatic Profile Bold & Woody 0 0
5006 742 6359 S Aromatic Profile Powerful & Contrasting 0 0
5007 742 6363 S Aromatic Profile Harmoniously balanced & thick body 0 0
5008 742 6364 S Aromatic Profile Intense & Creamy 0 0
5009 742 6364 S Aromatic Profile Intense & Creamy 0 0
5010 742 6368 S Aromatic Profile Round & Balanced 0 0
5011 742 6370 S Aromatic Profile Fruity and Vibrant 0 0
5013 742 6372 S Aromatic Profile Rich and Woody 0 0
5014 742 6370 S Aromatic Profile Fruity and Vibrant 0 0
5016 742 6374 S Aromatic Profile Vanilla Flavored 0 0
5017 742 6377 S Aromatic Profile Caramel flavoured 0 0
5018 742 6379 S Aromatic Profile Roasted yet balanced 0 0
5019 742 6380 S Aromatic Profile Dense & Powerful 0 0
5020 742 6391 S Aromatic Profile Fruity 0 0
5021 742 6392 S Aromatic Profile Cereal & Fruity 0 0
5022 742 6391 S Aromatic Profile Fruity 0 0
5023 742 6394 S Aromatic Profile Spicy 0 0
5024 742 6395 S Aromatic Profile Rich & Full-bodied 0 0
5969 742 7673 S Aromatic Profile Sweet & Light 0 0
5002 657 6275 E Brand Nespresso 0 0
5004 657 6275 E Brand Nespresso 0 0
5005 657 6275 E Brand Nespresso 0 0
5006 657 6275 E Brand Nespresso 0 0
5007 657 6275 E Brand Nespresso 0 0
5008 657 6275 E Brand Nespresso 0 0
5009 657 6275 E Brand Nespresso 0 0
5010 657 6275 E Brand Nespresso 0 0
5011 657 6275 E Brand Nespresso 0 0
5013 657 6275 E Brand Nespresso 0 0
5014 657 6275 E Brand Nespresso 0 0
5016 657 6275 E Brand Nespresso 0 0
5017 657 6275 E Brand Nespresso 0 0
5018 657 6275 E Brand Nespresso 0 0
5019 657 6275 E Brand Nespresso 0 0
5020 657 6275 E Brand Nespresso 0 0
5021 657 6275 E Brand Nespresso 0 0
5022 657 6275 E Brand Nespresso 0 0
5023 657 6275 E Brand Nespresso 0 0
5024 657 6275 E Brand Nespresso 0 0
5969 657 6275 E Brand Nespresso 0 0
5002 656 1560 S Color Black 0 160
5004 656 1783 S Color Dark blue 0 160
5005 656 1674 S Color Brown 0 160
5006 656 0.00 6360 S Color Dark Green 0 160
5007 656 1766 S Color Golden 0 160
5008 656 1788 S Color Cobalt Purple 0 160
5009 656 1788 S Color Cobalt Purple 0 160
5010 656 1707 S Color Orange 0 160
5011 656 1596 S Color Green 0 160
5013 656 1600 S Color Blue 0 160
5016 656 2986 S Color Sand Gold 0 160
5017 656 1707 S Color Orange 0 160
5018 656 1674 S Color Brown 0 160
5019 656 2315 S Color Red 0 160
5020 656 2315 S Color Red 0 160
5021 656 1560 S Color Black 0 160
5022 656 1766 S Color Golden 0 160
5023 656 1596 S Color Green 0 160
5024 656 1777 S Color Min Green 0 160
5969 656 1766 S Color Golden 0 160
5014 656 1558 S Color Pink 0 160
5002 743 6348 S Cup Size Ristretto (25 ml) and Espresso (40 ml) 0 0
5004 743 6348 S Cup Size Ristretto (25 ml) and Espresso (40 ml) 0 0
5005 743 6348 S Cup Size Ristretto (25 ml) and Espresso (40 ml) 0 0
5006 743 6348 S Cup Size Ristretto (25 ml) and Espresso (40 ml) 0 0
5007 743 6348 S Cup Size Ristretto (25 ml) and Espresso (40 ml) 0 0
5008 743 6348 S Cup Size Ristretto (25 ml) and Espresso (40 ml) 0 0
5009 743 6367 S Cup Size Ristretto: 25 ml, Espresso: 40 ml, Lungo: 110 ml 0 0
5010 743 6367 S Cup Size Ristretto: 25 ml, Espresso: 40 ml, Lungo: 110 ml 0 0
5011 743 6371 S Cup Size Espresso (40 ml) Lungo (110 ml) 0 0
5013 743 6371 S Cup Size Espresso (40 ml) Lungo (110 ml) 0 0
5014 743 6371 S Cup Size Espresso (40 ml) Lungo (110 ml) 0 0
5016 743 6375 S Cup Size Milk-recipe 0 0
5017 743 6378 S Cup Size Espresso (40 ml), Lungo (110 ml), milk-recipe 0 0
5018 743 6375 S Cup Size Milk-recipe 0 0
5019 743 6381 S Cup Size Lungo (110 ml) 0 0
5020 743 6381 S Cup Size Lungo (110 ml) 0 0
5021 743 6393 S Cup Size Espresso (40 ml) 0 0
5022 743 6348 S Cup Size Ristretto (25 ml) and Espresso (40 ml) 0 0
5023 743 6393 S Cup Size Espresso (40 ml) 0 0
5024 743 6381 S Cup Size Lungo (110 ml) 0 0
5969 743 7674 S Cup Size Ristretto (25 ml), Espresso (40 ml), Lungo (110 ml 0 0
5002 740 6349 S Intensity 10/13 0 0
5004 740 6355 S Intensity 12/13 0 0
5005 740 6358 S Intensity 8/13 0 0
5006 740 6349 S Intensity 10/13 0 0
5007 740 6358 S Intensity 8/13 0 0
5008 740 6365 S Intensity 9/13 0 0
5009 740 6365 S Intensity 9/13 0 0
5010 740 6345 S Intensity 6/13 0 0
5011 740 6345 S Intensity 6/13 0 0
5013 740 6358 S Intensity 8/13 0 0
5014 740 6345 S Intensity 6/13 0 0
5019 740 6349 S Intensity 10/13 0 0
5020 740 6344 S Intensity 5/13 0 0
5021 740 6345 S Intensity 6/13 0 0
5022 740 6358 S Intensity 8/13 0 0
5023 740 6365 S Intensity 9/13 0 0
5024 740 6358 S Intensity 8/13 0 0
5969 740 7675 S Intensity 4/13 0 0