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 (
    11255, 11277, 11280, 11222, 11102, 11112, 
    11120, 11311, 11312, 11098, 11262, 
    11283, 11314, 11285, 11286, 11290
  ) 
  AND f.display_on_catalog = 'Y' 
  AND (
    f.categories_path = '' 
    OR FIND_IN_SET(250, f.categories_path) 
    OR FIND_IN_SET(553, f.categories_path) 
    OR FIND_IN_SET(554, f.categories_path) 
    OR FIND_IN_SET(372, f.categories_path) 
    OR FIND_IN_SET(552, f.categories_path) 
    OR FIND_IN_SET(556, 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.00593

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "229.88"
    },
    "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": 372,
            "rows_produced_per_join": 120,
            "filtered": "32.51",
            "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (11255,11277,11280,11222,11102,11112,11120,11311,11312,11098,11262,11283,11314,11285,11286,11290))",
            "cost_info": {
              "read_cost": "159.31",
              "eval_cost": "12.10",
              "prefix_cost": "171.41",
              "data_read_per_join": "93K"
            },
            "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": 11,
            "filtered": "9.53",
            "cost_info": {
              "read_cost": "30.24",
              "eval_cost": "1.15",
              "prefix_cost": "213.74",
              "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(553,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(554,`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(552,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(556,`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.88",
              "eval_cost": "1.15",
              "prefix_cost": "217.78",
              "data_read_per_join": "26K"
            },
            "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.88",
              "eval_cost": "1.15",
              "prefix_cost": "221.81",
              "data_read_per_join": "13K"
            },
            "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.88",
              "eval_cost": "1.15",
              "prefix_cost": "225.84",
              "data_read_per_join": "34K"
            },
            "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.88",
              "eval_cost": "1.15",
              "prefix_cost": "229.88",
              "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
11098 760 9763 S Bean Hopper Capacity 275g 0 0
11102 760 9592 S Bean Hopper Capacity 90g 0 0
11112 760 120.00 10053 S Bean Hopper Capacity 120g 0 0
11120 760 7935 S Bean Hopper Capacity Uses pre-ground coffee; so no been hopper 0 0
11222 760 9613 S Bean Hopper Capacity None - its a capsule pod machine 0 0
11255 760 7240 S Bean Hopper Capacity None (requires external grinder or pre-ground coffee). 0 0
11262 760 9632 S Bean Hopper Capacity None for espresso; uses pre-ground coffee. For filter coffee, it uses pre-ground or whole beans if paired with a separate grinder. 0 0
11277 760 7240 S Bean Hopper Capacity None (requires external grinder or pre-ground coffee). 0 0
11280 760 9671 S Bean Hopper Capacity 500 grams 0 0
11283 760 9781 S Bean Hopper Capacity 280g 0 0
11285 760 9671 S Bean Hopper Capacity 500 grams 0 0
11286 760 9679 S Bean Hopper Capacity 300 grams 0 0
11290 760 9786 S Bean Hopper Capacity 400g 0 0
11311 760 7054 S Bean Hopper Capacity 250g 0 0
11312 760 7054 S Bean Hopper Capacity 250g 0 0
11314 760 7054 S Bean Hopper Capacity 250g 0 0
11098 732 9565 S Coffee & Drink Options Regular black filter coffee and hot water (for tea or instant drinks) 0 0
11120 732 9580 S Coffee & Drink Options Strong, espresso-style coffee (not true espresso pressure). Can also produce hot water, but is not designed for tea. It cannot make milk-based drinks directly. 0 0
11222 732 9615 S Coffee & Drink Options Manual creation of: Espresso, Lungo, Americano (espresso + hot water). With manual skill: Cappuccino, Latte. It can produce hot water. It cannot make hot chocolate or tea directly from ingredients. 0 0
11255 732 9622 S Coffee & Drink Options Espresso, lungo, hot water for americanos or tea. Cappuccino and latte require manual milk frothing skill. 0 0
11262 732 9633 S Coffee & Drink Options Drip filter coffee (full carafe), single-serve espresso, Americano, and hot water. Cappuccino/latte require manual milk frothing skill with the steam wand. 0 0
11277 732 9642 S Coffee & Drink Options Espresso, lungo, ristretto, americanos, cappuccino, latte (requires manual milk frothing skill). 0 0
11280 732 10075 S Coffee & Drink Options 6 preset beverages, which include Americano, Caffè Latte, Cappuccino, Espresso, Flat White, Latte Macchiato, and hot water 0 0
11283 732 9661 S Coffee & Drink Options Espresso, Americano, Long Black, Cold Brew, Cappuccino, Latte, Latte Macchiato, Flat White, Hot Milk & Hot Water - all customizable to your preferences. 0 0
11285 732 9672 S Coffee & Drink Options Approx. 21 drinks (espresso, lungo, cappuccino, latte macchiato, hot water, tea, iced, etc.) 0 0
11286 732 9680 S Coffee & Drink Options Approx. 28 drinks incl. espresso, cappuccino, latte, cold brew, flat white, americano, and more 0 0
11290 732 9685 S Coffee & Drink Options Espresso, Coffee, Long, Cappuccino, Latte Macchiato, Flat White, Espresso Macchiato, Hot Milk, Milk Foam, Hot Water 0 0
11311 732 9697 S Coffee & Drink Options Espresso, Coffee/Long Coffee, Cappuccino-style (frother), Hot Water 0 0
11312 732 9700 S Coffee & Drink Options Espresso, Coffee, Long, Cappuccino, Latte Macchiato, MyLatte, Hot Water 0 0
11314 732 9704 S Coffee & Drink Options Espresso, Coffee/Black Coffee, Cappuccino, Latte Macchiato, Hot Water 0 0
11098 757 9566 S Grinder Type & Settings No built-in grinder 0 0
11120 757 9566 S Grinder Type & Settings No built-in grinder 0 0
11222 757 9610 S Grinder Type & Settings No grinder. It uses sealed coffee, milk, chocolate, or tea capsules. 0 0
11255 757 9623 S Grinder Type & Settings No built-in grinder. Uses a 51 mm portafilter with standard pressurized filter baskets. 0 0
11262 757 9634 S Grinder Type & Settings No built-in grinder. Uses pre-ground coffee for both filter and espresso functions. 0 0
11277 757 9643 S Grinder Type & Settings No built-in grinder. Uses a commercial-style 51 mm portafilter. 0 0
11280 757 10076 S Grinder Type & Settings Integrated, adjustable conical steel grinder with 13 grind settings 0 0
11283 757 9662 S Grinder Type & Settings Integrated, adjustable ceramic burr grinder with multiple settings. 0 0
11285 757 9673 S Grinder Type & Settings Integrated conical burr with Bean Adapt tech 0 0
11286 757 9681 S Grinder Type & Settings Integrated adjustable grinder 0 0
11290 757 9686 S Grinder Type & Settings Integrated steel burr grinder with 13 levels 0 0
11311 757 9698 S Grinder Type & Settings Integrated burr grinder (adjustable) 0 0
11312 757 9701 S Grinder Type & Settings Integrated stainless-steel burr with approx. 13 settings 0 0
11314 757 9705 S Grinder Type & Settings Integrated conical steel burr with approx. 13 settings 0 0
11098 758 9567 S Milk Frothing No milk system. Milk must be frothed seperately 0 0
11120 758 9567 S Milk Frothing No milk system. Milk must be frothed seperately 0 0
11222 758 9614 S Milk Frothing : No traditional steam wand. Milk-based drinks are made using specific milk capsules. The machine has an integrated, automatic milk frother that works with fresh, cold milk from a connected jug or with milk capsules. 0 0
11255 758 9624 S Milk Frothing Manual, traditional steam wand 0 0
11262 758 9635 S Milk Frothing Manual Panarello-style steam wand (milk jug included) 0 0
11277 758 9644 S Milk Frothing Manual, traditional steam wand for texturing milk 0 0
11280 758 10077 S Milk Frothing It uses the automatic LatteCrema Hot Technology to produce rich, creamy hot milk foam. The optional LatteCrema Cool upgrade set is required for cold milk drinks 0 0
11283 758 9663 S Milk Frothing Automatic, 5 froth levels and 4 temperature settings 0 0
11285 758 9674 S Milk Frothing Automatic LatteCrema System 0 0
11286 758 9678 S Milk Frothing Automatic LatteCrema Hot & Cool system with milk tank 0 0
11290 758 9687 S Milk Frothing Automatic LatteCrema System + manual steam device 0 0
11311 758 9699 S Milk Frothing Built-in milk frother/nozzle 0 0
11312 758 9702 S Milk Frothing Automatic LatteCrema Hot system with milk carafe + MyLatte function 0 0
11314 758 9706 S Milk Frothing Integrated automatic milk system 0 0
11098 759 9568 S Pump Pressure None. Uses a heating element and gravity brewing, not a pump 0 0
11120 759 9581 S Pump Pressure 3-4 (steam pressure, not a pump) 0 0
11222 759 7028 S Pump Pressure 15 bar pressure 0 0
11255 759 7028 S Pump Pressure 15 bar pressure 0 0
11262 759 7028 S Pump Pressure 15 bar pressure 0 0
11277 759 15.00 9645 S Pump Pressure 15 bar pump 0 0
11280 759 7286 S Pump Pressure 19 pump pressure 0 0
11283 759 9645 S Pump Pressure 15 bar pump 0 0
11285 759 7286 S Pump Pressure 19 pump pressure 0 0
11286 759 7286 S Pump Pressure 19 pump pressure 0 0
11290 759 7028 S Pump Pressure 15 bar pressure 0 0
11311 759 7028 S Pump Pressure 15 bar pressure 0 0
11312 759 7028 S Pump Pressure 15 bar pressure 0 0
11314 759 7028 S Pump Pressure 15 bar pressure 0 0
11098 733 9569 S Water Tank Capacity 1.25 L 0 0
11120 733 9582 S Water Tank Capacity 0.35 L 0 0
11222 733 6330 S Water Tank Capacity 1.3 L 0 0
11255 733 9625 S Water Tank Capacity 1.1 L 0 0
11262 733 9569 S Water Tank Capacity 1.25 L 0 0
11277 733 9625 S Water Tank Capacity 1.1 L 0 0
11280 733 1.40 10078 S Water Tank Capacity 1.4L 0 0
11283 733 7137 S Water Tank Capacity 1.7 liters (removable) 0 0
11285 733 8566 S Water Tank Capacity 2.2 L 0 0
11286 733 7183 S Water Tank Capacity 1.8 L 0 0
11290 733 2.00 9688 S Water Tank Capacity 2 L 0 0
11311 733 7183 S Water Tank Capacity 1.8 L 0 0
11312 733 7183 S Water Tank Capacity 1.8 L 0 0
11314 733 7183 S Water Tank Capacity 1.8 L 0 0
11102 682 90.00 9767 S سعة/قدرة 90g 0 300
11112 682 120.00 10054 S سعة/قدرة 120g 0 300
11098 656 1560 S لون Black 0 160
11102 656 1560 S لون Black 0 160
11112 656 1560 S لون Black 0 160
11120 656 7345 S لون White/Red 0 160
11222 656 1559 S لون White 0 160
11255 656 1607 S لون Silver 0 160
11262 656 1560 S لون Black 0 160
11277 656 1596 S لون Green 0 160
11280 656 1559 S لون White 0 160
11283 656 7672 S لون silver and black 0 160
11285 656 0.00 9675 S لون Black and Metal 0 160
11286 656 7191 S لون Black and silver 0 160
11290 656 0.00 9689 S لون White with metal accents 0 160
11311 656 1559 S لون White 0 160
11312 656 0.00 9703 S لون Titanium/Black 0 160
11314 656 1559 S لون White 0 160
11098 657 6979 E ماركة De'Longhi 0 0
11102 657 6979 E ماركة De'Longhi 0 0
11112 657 6979 E ماركة De'Longhi 0 0
11120 657 6979 E ماركة De'Longhi 0 0
11222 657 6979 E ماركة De'Longhi 0 0
11255 657 6979 E ماركة De'Longhi 0 0
11262 657 6979 E ماركة De'Longhi 0 0
11277 657 6979 E ماركة De'Longhi 0 0
11280 657 6979 E ماركة De'Longhi 0 0
11283 657 6979 E ماركة De'Longhi 0 0
11285 657 6979 E ماركة De'Longhi 0 0
11286 657 6979 E ماركة De'Longhi 0 0
11290 657 6979 E ماركة De'Longhi 0 0
11311 657 6979 E ماركة De'Longhi 0 0
11312 657 6979 E ماركة De'Longhi 0 0
11314 657 6979 E ماركة De'Longhi 0 0