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 (6085, 6016, 6084, 6086, 6192) 
  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(537, 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.00308

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "108.12"
    },
    "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": 176,
            "rows_produced_per_join": 57,
            "filtered": "32.52",
            "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (6085,6016,6084,6086,6192))",
            "cost_info": {
              "read_cost": "74.74",
              "eval_cost": "5.72",
              "prefix_cost": "80.46",
              "data_read_per_join": "44K"
            },
            "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": 5,
            "filtered": "9.53",
            "cost_info": {
              "read_cost": "14.31",
              "eval_cost": "0.55",
              "prefix_cost": "100.49",
              "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(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(537,`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.36",
              "eval_cost": "0.55",
              "prefix_cost": "102.40",
              "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.36",
              "eval_cost": "0.55",
              "prefix_cost": "104.31",
              "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.36",
              "eval_cost": "0.55",
              "prefix_cost": "106.21",
              "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.36",
              "eval_cost": "0.55",
              "prefix_cost": "108.12",
              "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
6016 657 6402 E Brand Ezviz 0 0
6085 657 6402 E Brand Ezviz 0 0
6192 657 6402 E Brand Ezviz 0 0
6086 657 6402 E Brand Ezviz 0 0
6084 657 6402 E Brand Ezviz 0 0
6016 745 7718 S Camera Connectivity Dual-band WiFi 6 (2.4 / 5 GHz) 0 0
6086 745 7793 S Camera Connectivity Wi-Fi (IEEE 802.11 b/g/n) 0 0
6085 745 7784 S Camera Connectivity Wi-Fi (IEEE 802.11b/g/n) 0 0
6084 745 7774 S Camera Connectivity Wi-Fi (802.11 b/g/n/ax, 2.4 GHz) 0 0
6192 745 7861 S Camera Connectivity Dual-band Wi-Fi 2.4 GHz / 5 GHz 0 0
6085 744 7785 S Camera Type Outdoor wireless battery pan & tilt camera 0 0
6192 744 7862 S Camera Type Indoor PTZ dual-lens smart camera 0 0
6086 744 7785 S Camera Type Outdoor wireless battery pan & tilt camera 0 0
6016 744 7719 S Camera Type Indoor PT (Pan/Tilt) / smart video calling camera 0 0
6084 744 7775 S Camera Type Outdoor wireless pan & tilt (PT) battery camera 0 0
6192 656 1559 S Color white 0 160
6085 656 1559 S Color white 0 160
6016 656 1560 S Color Black 0 160
6086 656 1559 S Color white 0 160
6085 735 7786 S Field of View (FOV) Pan 340°, Tilt 65° 0 0
6016 735 7720 S Field of View (FOV) About 100° diagonal view angle 0 0
6084 735 7776 S Field of View (FOV) Pan 340°, Tilt 75° 0 0
6086 735 7794 S Field of View (FOV) 100° diagonal / 83° horizontal / 44° vertical 0 0
6192 735 7863 S Field of View (FOV) Wide lens ≈ 100° diagonal / Telephoto lens ≈ 45° 0 0
6085 736 7787 S Focal Length 4 mm, F1.6 0 0
6086 736 7795 S Focal Length 4 mm @ F1.6 0 0
6016 736 7721 S Focal Length 4 mm lens, f/1.6 0 0
6084 736 7777 S Focal Length 4 mm, F1.2 0 0
6192 736 7864 S Focal Length Wide lens ≈ 2.8 mm, Telephoto lens ≈ 8 mm 0 0
6016 737 7722 S Night Mode IR night vision up to ~10 meters 0 0
6085 737 7788 S Night Mode IR night vision up to 15 m + built-in spotlights (color mode) 0 0
6086 737 7796 S Night Mode IR night vision up to 15 m + color night vision (via spotlights 0 0
6084 737 7778 S Night Mode IR (black & white) + color night vision via built-in spotlights, up to ~15 m 0 0
6192 737 7865 S Night Mode Color night vision with spotlight + IR up to 10 m 0 0
6192 738 7866 S Operating Conditions −10 °C to 45 °C, humidity ≤ 95% (indoor use) 0 0
6086 738 7779 S Operating Conditions –20 °C to +50 °C, humidity ≤ 95% non-condensing 0 0
6085 738 7779 S Operating Conditions –20 °C to +50 °C, humidity ≤ 95% non-condensing 0 0
6016 738 7723 S Operating Conditions –10 °C to 40 °C 0 0
6084 738 7779 S Operating Conditions –20 °C to +50 °C, humidity ≤ 95% non-condensing 0 0
6016 645 0.00 7725 S Ports USB Type-C (for power) 0 110
6085 645 0.00 7790 S Ports DC 5 V / 2 A 0 110
6084 645 0.00 7781 S Ports DC 5 V / 2 A power input 0 110
6192 645 0.00 7868 S Ports microSD slot, USB Type-C power input 0 110
6086 645 7790 S Ports DC 5 V / 2 A 0 110
6192 642 7867 S Resolution Up to 2K (2560 × 1440) at 25 fps 0 50
6016 642 7724 S Resolution 4 MP (2K+ quality) 0 50
6085 642 7789 S Resolution 2304 × 1296 (3 MP / “2K”) 0 50
6086 642 7797 S Resolution 2304 × 1296 (3 MP / 4K) 0 50
6084 642 7780 S Resolution 3840 × 2160 (4K) 0 50
6192 646 0.00 7869 S Sensor AI human & motion detection, smart tracking 0 130
6016 646 0.00 7726 S Sensor CMOS image sensor (4 MP) 0 130
6084 646 0.00 7782 S Sensor AI-powered human shape detection, auto-tracking 0 130
6085 646 0.00 7791 S Sensor Smart human motion detection (PIR + algorithm) 0 130
6086 646 0.00 7798 S Sensor Smart Human Motion Detection (uses PIR + person-shape algorithm) 0 130
6192 648 0.00 7870 S Storage microSD card (up to 512 GB) + EZVIZ CloudPlay cloud storage 0 170
6016 648 0.00 7727 S Storage microSD card support up to 512 GB + optional EZVIZ CloudPlay storage 0 170
6084 648 0.00 7783 S Storage microSD (up to 512 GB) + support for EZVIZ Cloud storage 0 170
6085 648 0.00 7792 S Storage microSD card up to 256 GB + EZVIZ CloudPlay support 0 170
6086 648 0.00 7799 S Storage microSD card (up to 256 GB) + support for EZVIZ CloudPlay 0 170