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 (
    2307, 2403, 2347, 2324, 1619, 2332, 2361, 
    2378, 3166, 2320, 2331, 2348, 2318, 
    2321
  ) 
  AND f.display_on_catalog = 'Y' 
  AND (
    f.categories_path = '' 
    OR FIND_IN_SET(166, f.categories_path) 
    OR FIND_IN_SET(378, f.categories_path) 
    OR FIND_IN_SET(379, 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.00466

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "180.80"
    },
    "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": 292,
            "rows_produced_per_join": 94,
            "filtered": "32.52",
            "index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (2307,2403,2347,2324,1619,2332,2361,2378,3166,2320,2331,2348,2318,2321)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
            "cost_info": {
              "read_cost": "125.42",
              "eval_cost": "9.49",
              "prefix_cost": "134.91",
              "data_read_per_join": "73K"
            },
            "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": 9,
            "filtered": "9.53",
            "cost_info": {
              "read_cost": "23.74",
              "eval_cost": "0.90",
              "prefix_cost": "168.14",
              "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(378,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(379,`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": 9,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.26",
              "eval_cost": "0.90",
              "prefix_cost": "171.31",
              "data_read_per_join": "20K"
            },
            "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": 9,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.26",
              "eval_cost": "0.90",
              "prefix_cost": "174.47",
              "data_read_per_join": "10K"
            },
            "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": 9,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.26",
              "eval_cost": "0.90",
              "prefix_cost": "177.64",
              "data_read_per_join": "27K"
            },
            "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": 9,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.26",
              "eval_cost": "0.90",
              "prefix_cost": "180.80",
              "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
1619 653 2100 S Battery 27,650mAh 0 100
2307 653 2090 S Battery 10,000mAh 0 100
2318 653 2610 S Battery 60,000mAh 0 100
2320 653 2618 S Battery 90,000mAh 0 100
2321 653 2618 S Battery 90,000mAh 0 100
2324 653 2090 S Battery 10,000mAh 0 100
2331 653 2090 S Battery 10,000mAh 0 100
2332 653 2107 S Battery 5,000 mAh 0 100
2347 653 2708 S Battery 6,600mAh 0 100
2348 653 2090 S Battery 10,000mAh 0 100
2361 653 2090 S Battery 10,000mAh 0 100
2378 653 2083 S Battery 24,000mAh 0 100
2403 653 2610 S Battery 60,000mAh 0 100
3166 653 2090 S Battery 10,000mAh 0 100
1619 657 2082 E Brand Anker 0 0
2307 657 2082 E Brand Anker 0 0
2318 657 2082 E Brand Anker 0 0
2320 657 2082 E Brand Anker 0 0
2321 657 2082 E Brand Anker 0 0
2324 657 2082 E Brand Anker 0 0
2331 657 2082 E Brand Anker 0 0
2332 657 2082 E Brand Anker 0 0
2347 657 2082 E Brand Anker 0 0
2348 657 2082 E Brand Anker 0 0
2361 657 2082 E Brand Anker 0 0
2378 657 2082 E Brand Anker 0 0
2403 657 2082 E Brand Anker 0 0
3166 657 2082 E Brand Anker 0 0
1619 654 2086 S Charging Type Fast Charging, Wired 0 120
2307 654 2086 S Charging Type Fast Charging, Wired 0 120
2318 654 2629 S Charging Type Fast Charging via PD 3.1 USB-C, solar input (up to 100 W), or car inlet 0 120
2320 654 2620 S Charging Type Fast Charging, Wired (PD 3.1, solar input, car input) 0 120
2321 654 2624 S Charging Type Fast charging via dual 140 W USB‑C (up to 280 W total), AC, solar (100 W max), or car inlet 0 120
2324 654 2093 S Charging Type Fast Charging, Wired and Wireless 0 120
2331 654 2086 S Charging Type Fast Charging, Wired 0 120
2332 654 2664 S Charging Type Magnetic wireless (MagSafe-compatible, up to 7.5 W), plus wired via USB‑C 0 120
2347 654 2710 S Charging Type Fast wired (USB‑C Power Delivery), Qi2-certified magnetic wireless charging (15 W) 0 120
2348 654 2086 S Charging Type Fast Charging, Wired 0 120
2361 654 2751 S Charging Type Fast wired charging via USB‑C 0 120
2378 654 2751 S Charging Type Fast wired charging via USB‑C 0 120
2403 654 2835 S Charging Type Fast wired charging supports USB‑C Power Delivery (up to 60 W) for quick recharging using any compatible PD wall charger. 0 120
3166 654 3583 S Charging Type Charges via USB-C (two-way fast charging) 0 120
2307 656 1560 S Color Black 0 160
2318 656 1889 S Color Dark Gray 0 160
2320 656 1889 S Color Dark Gray 0 160
2321 656 1889 S Color Dark Gray 0 160
2324 656 1560 S Color Black 0 160
2331 656 1560 S Color Black 0 160
2332 656 1560 S Color Black 0 160
2347 656 1560 S Color Black 0 160
2348 656 1560 S Color Black 0 160
2361 656 1559 S Color white 0 160
2378 656 1560 S Color Black 0 160
2403 656 1750 S Color Awesome Olive 0 160
3166 656 2985 S Color Aurora Purple 0 160
2318 649 2628 S Display Built-in smart screen shows real-time input/output wattage, battery %, and estimated runtime/recharge time 0 20
2320 649 2617 S Display Real-time input power (W), Real-time output power (W), Remaining battery percentage, Estimated remaining runtime or recharge time 0 20
2321 649 2622 S Display Smart color display showing real-time input/output (W), battery %, estimated runtime & recharge time 0 20
2324 649 2635 S Display Color LCD showing battery level and charging status 0 20
2331 649 2658 S Display Intelligent color digital display showing battery level and charging status 0 20
2332 649 2662 S Display None; uses a simple 4-LED battery-level indicator 0 20
2347 649 2707 S Display None, charge status via LED indicators and magnetic contact alignment feedback 0 20
2348 649 2713 S Display Color LCD showing battery level and estimated remaining time 0 20
2361 649 2749 S Display LED/LCD battery status, usage time display 0 20
2378 649 2792 S Display Basic LED indicator lights (no digital screen) 0 20
2403 649 2831 S Display Smart digital TFT display with battery %, input/output wattage, charge time, and mode 0 20
3166 649 3582 S Display None; uses a simple 4‑LED battery-level indicator 0 20
2318 683 2627 S Input Up to 280W combined dual USB-C charging, Up to 100W solar input 0 310
2320 683 2627 S Input Up to 280W combined dual USB-C charging, Up to 100W solar input 0 310
2321 683 2625 S Input Dual USB‑C: 280 W combined, AC inlet: up to 330 W (bypass 380 W), Solar: 11–28 V, 8.2 A (100 W max) 0 310
2324 683 2637 S Input USB‑C port (up to 35 W input) 0 310
2331 683 2660 S Input USB‑C input (up to 20 W) 0 310
2332 683 2665 S Input USB‑C (5 V ⎓ 2 A, approx. 10 W) 0 310
2347 683 2711 S Input USB‑C 5 V ⎓ 3 A / 9 V ⎓ 2.22 A (up to 20 W) 0 310
2348 683 2715 S Input Built-in USB‑C cable: up to 30 W (5 V ⎓ 3 A, 9 V ⎓ 3 A, 15 V ⎓ 2 A, 20 V ⎓ 1.5 A), USB‑C port: up to 30 W 0 310
2361 683 2752 S Input USB‑C, up to 18 W 0 310
2378 683 2794 S Input USB‑C input up to 30 W 0 310
2403 683 2834 S Input USB‑C input: Up to 60 W, XT60 input: DC 10-24 V, max 60 W 0 310
3166 683 3553 S Input USB-C (charging) 0 310
2307 684 2583 S Output Up to 35W 0 320
2318 684 2612 S Output Up to 200 W continuous AC-equivalent output 0 320
2320 684 2621 S Output 300 W continuous output, 600 W surge 0 320
2321 684 2626 S Output 300 W continuous (600 W surge) 0 320
2324 684 2638 S Output Up to 35 W total output across USB‑C and wireless (supports simultaneous phone and Apple Watch charging) 0 320
2331 684 2661 S Output Total up to 22.5 W (via cable or ports); can charge up to three devices simultaneously (one wired + two via ports, or two devices max via ports alone) 0 320
2332 684 2666 S Output USB‑C wired (max ~12 W), magnetic wireless (max 7.5 W), total simultaneous output capped at 12 W 0 320
2347 684 2712 S Output USB‑C wired: 5 V ⎓ 3 A / 9 V ⎓ 2.22 A (20 W max), Wireless magnetic: up to 15 W, Combined output max: ~18 W 0 320
2348 684 2716 S Output Built-in USB‑C cable: up to 30 W, USB‑C port: up to 30 W, USB‑A port: up to 22.5 W, Total combined output: up to 30 W 0 320
2361 684 2753 S Output USB‑C ports: 30 W max, USB‑A port: up to 18 W 0 320
2378 684 2795 S Output USB‑C 1: up to 45 W, USB‑C 2: up to 20 W, USB‑A: up to 15W -18 W 0 320
2403 684 2833 S Output Single-C port: up to 60 W, Dual usage: USB‑C1 at 60 W + USB‑C2 at 27 W, total varies when USB‑A also in use (20–87 W) 0 320
3166 684 3584 S Output USB‑C output: part of total 12 W shared output, USB‑A output: part of total 12 W shared output 0 320
1619 645 2101 S Ports 2 × USB-C, 1 × USB-A 0 110
2307 645 2582 S Ports 2 × USB-C (built-in cables), 1 × USB-C port 0 110
2318 645 2611 S Ports 1 × 140 W two-way USB‑C (PD 3.1), 1 × 100 W USB‑C, 1 × 15 W USB‑C, 2 × USB‑A (12 W each), 1 × 120 W car socket 0 110
2320 645 2619 S Ports 2 × 140 W two-way USB‑C (PD 3.1), 1 × 100 W USB‑C, 1 × 15 W USB‑C, 2 × USB‑A (12 W each), 1 × 120 W DC car socket (auxiliary) 0 110
2321 645 2623 S Ports 3 × USB‑C (2 × 140 W bi-directional, 1 × 100 W), 1 × USB‑C (15 W), 1 × USB‑A (12 W), 3 × AC outlets (pure sine wave), 1 × 120 W DC car socket 0 110
2324 645 2636 S Ports 1 × USB‑C port (35 W max, bi-directional), 1 × USB‑C charging base for Apple Watch (5 W), 1 × MagSafe-compatible wireless charging pad (15 W for iPhone) 0 110
2331 645 2659 S Ports 1 × built-in USB‑C cable (22.5 W max output), 1 × USB‑C port (22.5 W max output), 1 × USB‑A port (22.5 W max output) 0 110
2332 645 2663 S Ports 1 × USB‑C 0 110
2347 645 2709 S Ports 1 × USB‑C (input/output), Magnetic Qi2 wireless charging pad with adjustable foldable stand (30°–65° viewing angle) 0 110
2348 645 2714 S Ports Built-in USB‑C cable (30 W bi-directional), Built-in Lightning cable, 1 × USB‑C port (additional output/input), 1 × USB‑A port 0 110
2361 645 2750 S Ports 2 × USB‑C, 1 × USB‑A 0 110
2378 645 2793 S Ports USB‑C 1: Input/output, USB‑C 2: Output only, USB‑A: Output 0 110
2403 645 2832 S Ports 2 × USB‑C (PD ports), 2 × USB‑A, 1 × XT60 input for solar/car charging 0 110
3166 645 2914 S Ports 1 x USB-C, 1 x USB-A 0 110