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 = 'ar' 
  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 = 'ar' 
  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 (7616, 7293, 7279, 7617, 7620) 
  AND f.display_on_catalog = 'Y' 
  AND (
    f.categories_path = '' 
    OR FIND_IN_SET(166, f.categories_path) 
    OR FIND_IN_SET(174, f.categories_path) 
    OR FIND_IN_SET(190, f.categories_path) 
    OR FIND_IN_SET(372, f.categories_path) 
    OR FIND_IN_SET(453, f.categories_path) 
    OR FIND_IN_SET(454, 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 = 'ar' 
ORDER BY 
  fd.description, 
  fv.position

Query time 0.00430

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "139.09"
    },
    "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": 227,
            "rows_produced_per_join": 73,
            "filtered": "32.51",
            "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (7616,7293,7279,7617,7620))",
            "cost_info": {
              "read_cost": "96.03",
              "eval_cost": "7.38",
              "prefix_cost": "103.41",
              "data_read_per_join": "57K"
            },
            "used_columns": [
              "feature_id",
              "product_id",
              "variant_id",
              "value",
              "value_int",
              "lang_code"
            ],
            "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'ar') 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": 7,
            "filtered": "9.53",
            "cost_info": {
              "read_cost": "18.45",
              "eval_cost": "0.70",
              "prefix_cost": "129.24",
              "data_read_per_join": "3K"
            },
            "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(174,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(190,`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(453,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(454,`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": 7,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.76",
              "eval_cost": "0.70",
              "prefix_cost": "131.70",
              "data_read_per_join": "15K"
            },
            "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": 7,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.76",
              "eval_cost": "0.70",
              "prefix_cost": "134.17",
              "data_read_per_join": "8K"
            },
            "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": 7,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.76",
              "eval_cost": "0.70",
              "prefix_cost": "136.63",
              "data_read_per_join": "21K"
            },
            "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": 7,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.76",
              "eval_cost": "0.70",
              "prefix_cost": "139.09",
              "data_read_per_join": "3K"
            },
            "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
7279 641 1647 S Aspect Ratio 16:9 0 30
7616 641 1647 S Aspect Ratio 16:9 0 30
7617 641 1647 S Aspect Ratio 16:9 0 30
7293 641 1647 S Aspect Ratio 16:9 0 30
7620 641 1647 S Aspect Ratio 16:9 0 30
7616 659 8492 S Connectivity Dual-Band Wi-Fi + Bluetooth 5.0 0 152
7293 659 8519 S Connectivity Wi‑Fi (2.4GHz) + Ethernet 0 152
7617 659 8506 S Connectivity Wi‑Fi (2.4GHz & 5GHz), Bluetooth, Ethernet 0 152
7279 659 8497 S Connectivity Dual‑Band Wi‑Fi, Bluetooth 0 152
7620 659 8506 S Connectivity Wi‑Fi (2.4GHz & 5GHz), Bluetooth, Ethernet 0 152
7620 664 8484 S Frequency Bands 2.4GHz + 5GHz 0 230
7279 664 8484 S Frequency Bands 2.4GHz + 5GHz 0 230
7616 664 8503 S Frequency Bands 802.11 a/b/g/n/ac 0 230
7293 664 8521 S Frequency Bands 2.4GHz 0 230
7617 664 8484 S Frequency Bands 2.4GHz + 5GHz 0 230
7620 652 8495 S GPU Integrated Graphics Engine 0 80
7616 652 8501 S GPU Integrated Hisense Graphic Engine 0 80
7293 652 8495 S GPU Integrated Graphics Engine 0 80
7617 652 8495 S GPU Integrated Graphics Engine 0 80
7279 652 8495 S GPU Integrated Graphics Engine 0 80
7293 640 8464 S Operating System VIDAA Smart OS 0 10
7620 640 8469 S Operating System Google TV 0 10
7617 640 8469 S Operating System Google TV 0 10
7616 640 8464 S Operating System VIDAA Smart OS 0 10
7279 640 8493 S Operating System Smart TV OS 0 10
7293 645 8518 S Ports 2 × HDMI, 1 × USB (varies by size) 0 110
7617 645 8505 S Ports 3 × HDMI 2.0, 1 × HDMI 1.4; 2 × USB; Optical Audio Out; Ethernet 0 110
7279 645 8496 S Ports 4 × HDMI 2.1, USB ports, Optical Audio, Ethernet 0 110
7620 645 8505 S Ports 3 × HDMI 2.0, 1 × HDMI 1.4; 2 × USB; Optical Audio Out; Ethernet 0 110
7616 645 8502 S Ports 3 × HDMI (1 × ARC), 2 × USB 2.0, 1 × Ethernet, 1 × Optical Audio Out 0 110
7616 704 130.00 8593 S Power 130W 0 0
7617 704 8582 S Power 80-110W 0 0
7620 704 8595 S Power 60-90W 0 0
7279 704 8590 S Power 300-320W 0 0
7293 704 80.00 8602 S Power 80W 0 0
7617 666 8508 S Power Support AC 100‑240V 0 250
7279 666 8499 S Power Support 100‑240V AC supply, typical standby and power consumption 0 250
7620 666 8508 S Power Support AC 100‑240V 0 250
7293 666 8508 S Power Support AC 100‑240V 0 250
7616 666 8489 S Power Support AC 100 – 240 V ~ 50/60 Hz 0 250
7616 651 8500 S Processor Quad-Core AI Processor 0 60
7279 651 8480 S Processor Quad-Core Picture Processor 0 60
7617 651 8504 S Processor Quad‑Core (4K Upscaling Engine) 0 60
7620 651 8504 S Processor Quad‑Core (4K Upscaling Engine) 0 60
7616 643 1711 S Ram 2GB 0 70
7616 650 1539 S Refresh Rate 60Hz 0 40
7279 650 1541 S Refresh Rate 144Hz 0 40
7617 650 1539 S Refresh Rate 60Hz 0 40
7293 650 1539 S Refresh Rate 60Hz 0 40
7620 650 1539 S Refresh Rate 60Hz 0 40
7293 642 7704 S Resolution Full HD (1920 × 1080) 0 50
7620 642 7677 S Resolution 4K UHD (3840 × 2160) 0 50
7279 642 7677 S Resolution 4K UHD (3840 × 2160) 0 50
7617 642 7677 S Resolution 4K UHD (3840 × 2160) 0 50
7616 642 3685 S Resolution 3840 x 2160 (4K) 0 50
7293 766 8560 S Tv Display 43" 0 0
7620 766 8560 S Tv Display 43" 0 0
7617 766 8551 S Tv Display 50 0 0
7616 766 8557 S Tv Display 55" 0 0
7279 766 8556 S Tv Display 85" 0 0
7617 662 8507 S Wi-Fi Standard IEEE 802.11 a/b/g/n (dual‑band) 0 210
7620 662 8507 S Wi-Fi Standard IEEE 802.11 a/b/g/n (dual‑band) 0 210
7279 662 8498 S Wi-Fi Standard Wi‑Fi 5 / Dual‑Band 0 210
7293 662 8520 S Wi-Fi Standard IEEE 802.11 b/g/n (2.4GHz) 0 210
7616 662 6786 S Wi-Fi Standard 802.11 a/b/g/n/ac 0 210
7616 648 1888 S التخزين 16GB 0 170
7617 656 1560 S لون Black 0 160
7279 656 1560 S لون Black 0 160
7616 656 1560 S لون Black 0 160
7293 656 1560 S لون Black 0 160
7620 656 1560 S لون Black 0 160
7279 657 8457 E ماركة Hisense 0 0
7620 657 8457 E ماركة Hisense 0 0
7617 657 8457 E ماركة Hisense 0 0
7293 657 8457 E ماركة Hisense 0 0
7616 657 8457 E ماركة Hisense 0 0