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 (6017, 6191, 6018) 
  AND f.display_on_catalog = 'Y' 
  AND (
    f.categories_path = '' 
    OR FIND_IN_SET(521, f.categories_path) 
    OR FIND_IN_SET(522, f.categories_path) 
    OR FIND_IN_SET(536, 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.00209

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "66.33"
    },
    "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": "product_id",
            "used_key_parts": [
              "product_id"
            ],
            "key_length": "3",
            "rows_examined_per_scan": 108,
            "rows_produced_per_join": 35,
            "filtered": "32.52",
            "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (6017,6191,6018))",
            "cost_info": {
              "read_cost": "45.85",
              "eval_cost": "3.51",
              "prefix_cost": "49.36",
              "data_read_per_join": "27K"
            },
            "used_columns": [
              "feature_id",
              "product_id",
              "variant_id",
              "value",
              "value_int",
              "lang_code"
            ],
            "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en') and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))"
          }
        },
        {
          "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": 3,
            "filtered": "9.53",
            "cost_info": {
              "read_cost": "8.78",
              "eval_cost": "0.33",
              "prefix_cost": "61.65",
              "data_read_per_join": "1K"
            },
            "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(521,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(522,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(536,`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": 3,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.84",
              "eval_cost": "0.33",
              "prefix_cost": "62.82",
              "data_read_per_join": "7K"
            },
            "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": 3,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.84",
              "eval_cost": "0.33",
              "prefix_cost": "63.99",
              "data_read_per_join": "3K"
            },
            "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": 3,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.84",
              "eval_cost": "0.33",
              "prefix_cost": "65.16",
              "data_read_per_join": "10K"
            },
            "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": 3,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.84",
              "eval_cost": "0.33",
              "prefix_cost": "66.33",
              "data_read_per_join": "1K"
            },
            "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
6191 657 6402 E Brand Ezviz 0 0
6017 657 6402 E Brand Ezviz 0 0
6018 657 6402 E Brand Ezviz 0 0
6017 745 7728 S Camera Connectivity Wi-Fi (IEEE 802.11 b/g/n), 2.4 GHz only 0 0
6191 745 7851 S Camera Connectivity Wi-Fi 2.4 GHz (IEEE 802.11b/g/n 0 0
6018 745 7738 S Camera Connectivity Wi-Fi (2.4 GHz, IEEE 802.11b/g/n) 0 0
6017 744 7729 S Camera Type Indoor battery-powered fixed camera 0 0
6191 744 7852 S Camera Type Indoor plug-in fixed home security camera 0 0
6018 744 7739 S Camera Type Indoor battery-powered fixed / palm-sized camera (with magnetic base) 0 0
6018 656 1560 S Color Black 0 160
6017 656 0.00 1559 S Color white 0 160
6191 656 1559 S Color white 0 160
6191 735 7853 S Field of View (FOV) 108° diagonal, 91° horizontal, 50° vertical wide-angle lens 0 0
6018 735 7740 S Field of View (FOV) ~100° diagonal, ~85° horizontal, ~46° vertical 0 0
6017 735 7730 S Field of View (FOV) 113° diagonal, ~90° horizontal, ~50° vertical 0 0
6191 736 7854 S Focal Length ~2.8 mm lens, IR-cut auto filter 0 0
6018 736 7741 S Focal Length 4 mm @ f/1.6 0 0
6017 736 7731 S Focal Length 2.8 mm, f/2.2 0 0
6191 737 7855 S Night Mode IR night vision up to 10 meters with auto IR-cut filter 0 0
6018 737 7742 S Night Mode IR night vision up to ~5 meters 0 0
6017 737 7732 S Night Mode Up to 5 meters using IR illumination 0 0
6191 738 7856 S Operating Conditions -10 °C to 45 °C, humidity ≤ 95% non-condensing 0 0
6018 738 7743 S Operating Conditions –10°C to 45°C, humidity up to 95% non-condensing 0 0
6017 738 7733 S Operating Conditions –10 °C to 45 °C, humidity ≤ 95% non-condensing 0 0
6018 645 0.00 7745 S Ports USB Type-C port for charging/power input 0 110
6017 645 0.00 7735 S Ports DC input (5 V / 1 A) — no wired network (Ethernet) port 0 110
6191 645 0.00 7858 S Ports DC 5V / 1A power input; no battery; plug-in device 0 110
6018 642 7744 S Resolution Full HD 1080p (1920×1080) at up to ~15 fps, self-adaptive 0 50
6017 642 7734 S Resolution 1080p (1920 × 1080) Full HD 0 50
6191 642 7857 S Resolution Up to 1920 × 1080 (Full HD) at max ~25 fps with adaptive frame-rate 0 50
6018 646 1.00 7746 S Sensor 1/2.8″ 2-megapixel progressive scan CMOS 0 130
6017 646 1.00 7736 S Sensor 1/3″ 2-megapixel progressive scan CMOS 0 130
6191 646 0.00 7859 S Sensor Motion detection; smart alerts; also anti-flicker, watermark, mirror image. 0 130
6018 648 0.00 7747 S Storage Supports microSD cards up to 512 GB + optional EZVIZ CloudPlay storage 0 170
6017 648 0.00 7737 S Storage microSD support up to 512 GB + optional EZVIZ CloudPlay subscription 0 170
6191 648 0.00 7860 S Storage Supports microSD up to 512 GB; also EZVIZ CloudPlay subscription option 0 170