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 (
    3505, 3495, 3494, 3491, 3486, 3480, 3496, 
    3510, 3471, 3492, 3484, 3477, 3468, 
    3466
  ) 
  AND f.display_on_catalog = 'Y' 
  AND (
    f.categories_path = '' 
    OR FIND_IN_SET(250, f.categories_path) 
    OR FIND_IN_SET(371, f.categories_path) 
    OR FIND_IN_SET(393, 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.00452

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "220.27"
    },
    "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": 357,
            "rows_produced_per_join": 116,
            "filtered": "32.51",
            "index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (3505,3495,3494,3491,3486,3480,3496,3510,3471,3492,3484,3477,3468,3466)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'ar')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
            "cost_info": {
              "read_cost": "152.55",
              "eval_cost": "11.61",
              "prefix_cost": "164.16",
              "data_read_per_join": "89K"
            },
            "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": 11,
            "filtered": "9.53",
            "cost_info": {
              "read_cost": "29.02",
              "eval_cost": "1.11",
              "prefix_cost": "204.79",
              "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(371,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(393,`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": 11,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.76",
              "eval_cost": "1.11",
              "prefix_cost": "208.66",
              "data_read_per_join": "25K"
            },
            "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": 11,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.76",
              "eval_cost": "1.11",
              "prefix_cost": "212.53",
              "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": 11,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.76",
              "eval_cost": "1.11",
              "prefix_cost": "216.40",
              "data_read_per_join": "33K"
            },
            "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": 11,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.76",
              "eval_cost": "1.11",
              "prefix_cost": "220.27",
              "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
3466 659 2199 S Connectivity USB 2.0 0 152
3468 659 4020 S Connectivity USB 2.0, Wi‑Fi, Wi‑Fi Direct, Epson Connect, AirPrint, Mopria 0 152
3471 659 4073 S Connectivity USB 2.0, Wi‑Fi, Wi‑Fi Direct, Epson mobile apps (iPrint, Smart Panel, Email Print) 0 152
3477 659 0.00 4405 S Connectivity Wi-Fi, Wi-Fi Direct, Ethernet, USB 2.0, Apple AirPrint, Mopria, Epson Smart Panel, Epson Connect 0 152
3480 659 0.00 4406 S Connectivity USB 2.0, Ethernet, Wi-Fi, Wi-Fi Direct, Bluetooth, Epson iPrint, Epson Connect, Apple AirPrint, Google Cloud Print 0 152
3484 659 4094 S Connectivity USB 2.0, Wi‑Fi, Wi‑Fi Direct, Epson mobile/cloud apps 0 152
3486 659 4094 S Connectivity USB 2.0, Wi‑Fi, Wi‑Fi Direct, Epson mobile/cloud apps 0 152
3491 659 2199 S Connectivity USB 2.0 0 152
3492 659 4119 S Connectivity USB, Wi-Fi, Ethernet, Wi-Fi Direct, SD / card reader 0 152
3494 659 4122 S Connectivity Connectivity: USB 2.0, Wi‑Fi (802.11b/g/n), Wi‑Fi Direct; Epson Smart Panel, AirPrint, Mopria, Epson Connect suite 0 152
3495 659 4127 S Connectivity USB 2.0, Wi-Fi, Wi-Fi Direct, Ethernet 0 152
3496 659 4129 S Connectivity USB 2.0, Ethernet, Wi‑Fi (802.11 b/g/n), Wi‑Fi Direct; Epson Smart Panel, iPrint, Email Print, Remote Print Driver, AirPrint, Mopria 0 152
3505 659 0.00 4156 S Connectivity USB 2.0, Ethernet, Wi‑Fi (a/b/g/n/ac), Wi‑Fi Direct; mobile/cloud apps: Epson Smart Panel, iPrint, Email Print, Remote Print Driver, Scan-to-Cloud; AirPrint, Mopria 0 152
3510 659 4177 S Connectivity USB 2.0, Wi‑Fi, Wi‑Fi Direct, Epson Smart Panel app 0 152
3466 675 3710 S Duplex Printing Manual 0 0
3468 675 4017 S Duplex Printing Automatic 0 0
3471 675 3710 S Duplex Printing Manual 0 0
3477 675 4017 S Duplex Printing Automatic 0 0
3480 675 4017 S Duplex Printing Automatic 0 0
3484 675 3710 S Duplex Printing Manual 0 0
3486 675 3710 S Duplex Printing Manual 0 0
3491 675 3710 S Duplex Printing Manual 0 0
3492 675 4017 S Duplex Printing Automatic 0 0
3494 675 3710 S Duplex Printing Manual 0 0
3495 675 4017 S Duplex Printing Automatic 0 0
3496 675 3710 S Duplex Printing Manual 0 0
3505 675 4017 S Duplex Printing Automatic 0 0
3510 675 3710 S Duplex Printing Manual 0 0
3466 672 2119 S Function Print, Scan, Copy 0 0
3468 672 2119 S Function Print, Scan, Copy 0 0
3471 672 2133 S Function Print 0 0
3477 672 2187 S Function Print, Scan, Copy, Fax 0 0
3480 672 2187 S Function Print, Scan, Copy, Fax 0 0
3484 672 2133 S Function Print 0 0
3486 672 2119 S Function Print, Scan, Copy 0 0
3491 672 2133 S Function Print 0 0
3492 672 2119 S Function Print, Scan, Copy 0 0
3494 672 2119 S Function Print, Scan, Copy 0 0
3495 672 2187 S Function Print, Scan, Copy, Fax 0 0
3496 672 2187 S Function Print, Scan, Copy, Fax 0 0
3505 672 2187 S Function Print, Scan, Copy, Fax 0 0
3510 672 2119 S Function Print, Scan, Copy 0 0
3466 673 4014 S Print Speed Up to 10 ipm (Black), Up to 5 ipm (Color) 0 0
3468 673 4018 S Print Speed 10.5 ipm (black), 5.0 ipm (color) ISO; up to 33 ppm / 15 ppm max 0 0
3471 673 4031 S Print Speed ISO: ~8 ipm mono/color; up to 22 ppm draft; borderless 4×6" photo in ~12 s 0 0
3477 673 4074 S Print Speed 15.5 ipm mono / 8.5 ipm color; Draft up to 33 ppm mono / 20 ppm color 0 0
3480 673 4085 S Print Speed Up to 24 ppm 0 0
3484 673 4093 S Print Speed Up to 12 ppm (black & white), Up to 8 ppm (color) 0 0
3486 673 4095 S Print Speed 10 ipm (black) / 5 ipm (color) ,up to 33 ppm (black) / 15 ppm (color) 0 0
3491 673 4115 S Print Speed Up to 15 ppm (black), 5.5 ppm (color) 0 0
3492 673 4117 S Print Speed Up to 32 ppm mono/color (plain paper); ISO: 16 ppm mono / 12 ppm color 0 0
3494 673 4120 S Print Speed Up to 15 ipm (black mono ISO) / 8 ipm (color ISO); Draft up to 33 ppm (mono) / 20 ppm (color) 0 0
3495 673 4124 S Print Speed Up to 25 ppm (mono & color), Duplex: ~21 ipm 0 0
3496 673 4128 S Print Speed Up to 15 ipm (mono) / 8 ipm (color); draft: up to 33 ppm / 20 ppm 0 0
3505 673 4154 S Print Speed (A4 ISO): 25 ipm (black), 12 ipm (color); Draft mode up to 32 ppm/22 ppm 0 0
3510 673 4176 S Print Speed 10 ipm (black), 5 ipm (color) 0 0
3466 642 3713 S Resolution 5760 x 1440 0 50
3468 642 3713 S Resolution 5760 x 1440 0 50
3471 642 3713 S Resolution 5760 x 1440 0 50
3477 642 4075 S Resolution 4800 x 1200 0 50
3480 642 4075 S Resolution 4800 x 1200 0 50
3484 642 3713 S Resolution 5760 x 1440 0 50
3486 642 3713 S Resolution 5760 x 1440 0 50
3491 642 3713 S Resolution 5760 x 1440 0 50
3492 642 4118 S Resolution 5,760 × 1,440 dpi print; 1,200 × 4,800 dpi scan 0 50
3494 642 3713 S Resolution 5760 x 1440 0 50
3495 642 4126 S Resolution 4800 x 2400 0 50
3496 642 4075 S Resolution 4800 x 1200 0 50
3505 642 4126 S Resolution 4800 x 2400 0 50
3510 642 3713 S Resolution 5760 x 1440 0 50
3494 674 4121 S Scan Speed 11 sec (A4 black, 200 dpi), ~28 sec (A4 color, 200 dpi) 0 0
3495 674 4125 S Scan Speed 26 ipm (simplex), 11.5 ipm (duplex), Color: 9 ipm (simplex), 6 ipm (duplex) 0 0
3496 674 4130 S Scan Speed Black: 12 s (≈ 4.5 ipm); Color: 29 s (≈ 4.5 ipm) 0 0
3505 674 4155 S Scan Speed Black: 26 ipm (simplex) / 11.5 ipm (duplex); Color: 9 ipm / 6 ipm 0 0
3510 674 4178 S Scan Speed ~11 sec (black, 200 dpi), ~28 sec (color, 200 dpi) 0 0
3466 648 4016 S التخزين None 0 170
3468 648 4016 S التخزين None 0 170
3471 648 4016 S التخزين None 0 170
3477 648 4016 S التخزين None 0 170
3480 648 4016 S التخزين None 0 170
3484 648 4016 S التخزين None 0 170
3486 648 4016 S التخزين None 0 170
3491 648 4016 S التخزين None 0 170
3492 648 4016 S التخزين None 0 170
3494 648 4016 S التخزين None 0 170
3495 648 4016 S التخزين None 0 170
3496 648 4016 S التخزين None 0 170
3505 648 4016 S التخزين None 0 170
3510 648 4016 S التخزين None 0 170
3466 656 1560 S لون Black 0 160
3468 656 1560 S لون Black 0 160
3471 656 1560 S لون Black 0 160
3477 656 1560 S لون Black 0 160
3480 656 1559 S لون White 0 160
3484 656 1560 S لون Black 0 160
3486 656 1559 S لون White 0 160
3491 656 1560 S لون Black 0 160
3492 656 1559 S لون White 0 160
3494 656 1560 S لون Black 0 160
3495 656 1559 S لون White 0 160
3496 656 1560 S لون Black 0 160
3505 656 1560 S لون Black 0 160
3510 656 1560 S لون Black 0 160
3466 657 3705 E ماركة Epson 0 0
3468 657 3705 E ماركة Epson 0 0
3471 657 3705 E ماركة Epson 0 0
3477 657 3705 E ماركة Epson 0 0
3480 657 3705 E ماركة Epson 0 0
3484 657 3705 E ماركة Epson 0 0
3486 657 3705 E ماركة Epson 0 0
3491 657 3705 E ماركة Epson 0 0
3492 657 3705 E ماركة Epson 0 0
3494 657 3705 E ماركة Epson 0 0
3495 657 3705 E ماركة Epson 0 0
3496 657 3705 E ماركة Epson 0 0
3505 657 3705 E ماركة Epson 0 0
3510 657 3705 E ماركة Epson 0 0