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 (
    2767, 2760, 2759, 2752, 2751, 2736, 2733, 
    2729
  ) 
  AND f.display_on_catalog = 'Y' 
  AND (
    f.categories_path = '' 
    OR FIND_IN_SET(166, f.categories_path) 
    OR FIND_IN_SET(329, f.categories_path) 
    OR FIND_IN_SET(344, 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.00252

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "107.66"
    },
    "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": 174,
            "rows_produced_per_join": 56,
            "filtered": "32.52",
            "index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (2767,2760,2759,2752,2751,2736,2733,2729)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
            "cost_info": {
              "read_cost": "74.65",
              "eval_cost": "5.66",
              "prefix_cost": "80.31",
              "data_read_per_join": "43K"
            },
            "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": 5,
            "filtered": "9.53",
            "cost_info": {
              "read_cost": "14.14",
              "eval_cost": "0.54",
              "prefix_cost": "100.11",
              "data_read_per_join": "2K"
            },
            "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(166,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(329,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(344,`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": 5,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.35",
              "eval_cost": "0.54",
              "prefix_cost": "102.00",
              "data_read_per_join": "12K"
            },
            "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": 5,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.35",
              "eval_cost": "0.54",
              "prefix_cost": "103.89",
              "data_read_per_join": "6K"
            },
            "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": 5,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.35",
              "eval_cost": "0.54",
              "prefix_cost": "105.77",
              "data_read_per_join": "16K"
            },
            "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": 5,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.35",
              "eval_cost": "0.54",
              "prefix_cost": "107.66",
              "data_read_per_join": "2K"
            },
            "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
2760 653 3143 S Battery 8 hours of playback on a single charge; 36 hours total with the charging case, provided 1 hour playback from a 10 minute charge 0 100
2767 653 3140 S Battery 50mAh per earbud with up to 6 hours playback and 24 hours total with charging case. 0 100
2751 653 3107 S Battery 40mAh per earbud, up to 7 hours of use and a charging case that extends total playback to around 28 hours. 0 100
2736 653 3097 S Battery 600 mAh total. Battery Life is up to 36–40 hours (earbuds + case) 0 100
2752 653 3111 S Battery 55mAh battery (each earbud) with up to 8 hours of use, extended to 32 hours with the 570mAh charging case. 0 100
2733 653 3085 S Battery 70 mAh, Up to 8 hours with Active Noise Cancelling on; up to 10 hours with ANC off; up to 40 hours with the charging case 0 100
2759 653 3117 S Battery 55mAh per earbud with up to 10 hours playback and a total of 48 hours including the charging case. 0 100
2729 653 3081 S Battery 48 mAh, offering up to 8 hours of playback per charge 0 100
2767 657 3006 E Brand JBL 0 0
2752 657 3006 E Brand JBL 0 0
2729 657 3006 E Brand JBL 0 0
2733 657 3006 E Brand JBL 0 0
2760 657 2082 E Brand Anker 0 0
2759 657 3006 E Brand JBL 0 0
2751 657 3006 E Brand JBL 0 0
2736 657 3006 E Brand JBL 0 0
2752 654 3112 S Charging Type USB-C with a full charge in about 2 hours and quick charge support. 0 120
2759 654 3118 S Charging Type USB-C, takes about 2 hours for a full charge and provides up to 10 hours of playback per charge. 0 120
2760 654 3135 S Charging Type USB-C charging (5v input) 0 120
2751 654 3109 S Charging Type USB-C, full charging takes about 2 hours and quick charge providing around 1 hour of playback. 0 120
2767 654 3141 S Charging Type USB-C or wireless charging, offering up to 6 hours playback per charge and 24 hours total with the case. 0 120
2729 654 3082 S Charging Type USB‑C with full recharge in ~2 hours, and quick‑charge feature giving 2 hours playback in just 10 minutes. 0 120
2733 654 3086 S Charging Type USB-C, requires approximately 2 hours to fully charge. A quick 10-minute charge provides about 2 hours of playback, 0 120
2736 654 3098 S Charging Type USB-C, full charge in approximately 2 hours 0 120
2759 656 2308 S Color Turquoise 0 160
2729 656 1560 S Color Black 0 160
2752 656 1724 S Color Obsidian Black 0 160
2733 656 1560 S Color Black 0 160
2760 656 1560 S Color Black 0 160
2767 656 1560 S Color Black 0 160
2751 656 1783 S Color Dark blue 0 160
2736 656 1560 S Color Black 0 160
2733 659 3088 S Connectivity Bluetooth 5.2 , range of up to 10 meters 0 152
2751 659 3110 S Connectivity Bluetooth 5.2 with a range of up to 10 meters. 0 152
2767 659 3142 S Connectivity Bluetooth 5.2, up to 10 meters range. 0 152
2729 659 3084 S Connectivity Bluetooth 5.2, wireless range of approximately 10 meters 0 152
2752 659 3114 S Connectivity Bluetooth 5.2 with up to 10 meters range. 0 152
2736 659 3099 S Connectivity Bluetooth 5.3, range up to 10 meters. 0 152
2759 659 3120 S Connectivity Bluetooth 5.3, up to 10 meters wireless range. 0 152
2760 659 2774 S Connectivity Bluetooth 5.0, with a range of 10 meters 0 152
2767 671 2112 S Headphone Ear Cup Types In-Ear 0 0
2759 671 2112 S Headphone Ear Cup Types In-Ear 0 0
2760 671 2113 S Headphone Ear Cup Types On-Ear 0 0
2729 671 2112 S Headphone Ear Cup Types In-Ear 0 0
2752 671 2112 S Headphone Ear Cup Types In-Ear 0 0
2736 671 2112 S Headphone Ear Cup Types In-Ear 0 0
2751 671 2112 S Headphone Ear Cup Types In-Ear 0 0
2752 683 3115 S Input USB-C charging, in-ear sensors, microphones for calls 0 310
2759 683 3121 S Input USB-C charging, in ear sensors, multiple microphones 0 310
2736 683 3100 S Input USB-C charging port (5V/1A) 0 310
2751 683 1.00 3944 S Input 1 × USB-C 0 310
2752 684 0.00 3947 S Output JBL Pure Bass sound, 12mm drivers, clear audio playback 0 320
2736 684 3101 S Output Audio via 8mm dynamic drivers (no external output ports) 0 320
2751 684 1.00 3945 S Output 1 × USB-C 0 320
2759 684 3122 S Output JBL Pure Bass sound, clear audio with 10mm drivers 0 320
2760 651 2980 S Processor Bluetooth 5.4 chipset 0 60
2751 646 3943 S Sensor Touch controls, In-ear detection, ANC (Active Noise Cancellation) 0 130
2752 646 3113 S Sensor In-ear detection sensors and touch controls. 0 130
2767 646 3119 S Sensor In ear detection sensors. 0 130
2736 646 3942 S Sensor Touch controls, ANC (Active Noise Cancellation), 0 130
2733 646 3087 S Sensor Touch sensitive controls and built in microphones for call clarity and noise cancellation. 0 130
2759 646 3119 S Sensor In ear detection sensors. 0 130
2729 646 3083 S Sensor In-ear detection sensors. 0 130