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 (
    2310, 2336, 2333, 2335, 1600, 3131, 1609, 
    3109, 1615, 2942, 2315, 2351
  ) 
  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.00438

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "148.73"
    },
    "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": 240,
            "rows_produced_per_join": 78,
            "filtered": "32.52",
            "index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (2310,2336,2333,2335,1600,3131,1609,3109,1615,2942,2315,2351)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
            "cost_info": {
              "read_cost": "103.21",
              "eval_cost": "7.80",
              "prefix_cost": "111.01",
              "data_read_per_join": "60K"
            },
            "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": 7,
            "filtered": "9.53",
            "cost_info": {
              "read_cost": "19.51",
              "eval_cost": "0.74",
              "prefix_cost": "138.32",
              "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": 7,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.86",
              "eval_cost": "0.74",
              "prefix_cost": "140.93",
              "data_read_per_join": "16K"
            },
            "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.86",
              "eval_cost": "0.74",
              "prefix_cost": "143.53",
              "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.86",
              "eval_cost": "0.74",
              "prefix_cost": "146.13",
              "data_read_per_join": "22K"
            },
            "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.86",
              "eval_cost": "0.74",
              "prefix_cost": "148.73",
              "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
1600 653 2090 S Battery 10,000mAh 0 100
2315 653 2090 S Battery 10,000mAh 0 100
2333 653 2107 S Battery 5,000 mAh 0 100
2335 653 2420 S Battery 20,000mAh 0 100
1609 653 2090 S Battery 10,000mAh 0 100
3109 653 3517 S Battery 40,000 mAh (148 Wh) 0 100
2336 653 2420 S Battery 20,000mAh 0 100
2310 653 2090 S Battery 10,000mAh 0 100
1615 653 2096 S Battery 20,000 mAh 0 100
2942 653 2107 S Battery 5,000 mAh 0 100
2351 653 2090 S Battery 10,000mAh 0 100
2315 657 2082 E Brand Anker 0 0
2333 657 2082 E Brand Anker 0 0
2310 657 2082 E Brand Anker 0 0
2335 657 2082 E Brand Anker 0 0
2336 657 2082 E Brand Anker 0 0
1615 657 2082 E Brand Anker 0 0
2351 657 2082 E Brand Anker 0 0
2942 657 2082 E Brand Anker 0 0
1609 657 2082 E Brand Anker 0 0
3109 657 2082 E Brand Anker 0 0
1600 657 2082 E Brand Anker 0 0
3131 657 2082 E Brand Anker 0 0
2351 654 2719 S Charging Type Fast charging via USB‑C 0 120
2336 654 2678 S Charging Type Fast charging via Power Delivery, supports simultaneous charging of multiple devices 0 120
2942 654 3336 S Charging Type USB-C port 0 120
3109 654 3519 S Charging Type USB-C PD input (up to 30W) 0 120
2333 654 2669 S Charging Type Magnetic wireless charging, wired via USB‑C (PD not supported) 0 120
3131 654 3546 S Charging Type Fast charges via USB-C 0 120
2335 654 2674 S Charging Type Fast charging (PowerIQ/VoltageBoost), trickle-charge mode for low-power devices 0 120
2315 654 2599 S Charging Type Fast Charging, Wired (USB‑C Power Delivery) 0 120
2310 654 2591 S Charging Type Fast Charging, Wired (PD 3.0 / PowerIQ) 0 120
1609 654 2086 S Charging Type Fast Charging, Wired 0 120
1615 654 2086 S Charging Type Fast Charging, Wired 0 120
1600 654 2093 S Charging Type Fast Charging, Wired and Wireless 0 120
2336 656 1560 S Color Black 0 160
3109 656 1560 S Color Black 0 160
1609 656 1560 S Color Black 0 160
2335 656 1560 S Color Black 0 160
2351 656 1600 S Color Blue 0 160
1615 656 1766 S Color Golden 0 160
1600 656 1560 S Color Black 0 160
3131 656 1560 S Color Black 0 160
2333 656 1560 S Color Black 0 160
2942 656 1560 S Color Black 0 160
2315 656 1560 S Color Black 0 160
2310 656 1776 S Color Sky Blue 0 160
3131 659 3547 S Connectivity Built in USB cable, USB-C, USB-A 0 152
2942 649 3335 S Display A 4-LED battery level indicator 0 20
3109 649 3516 S Display Basic LED indicator lights (4 LEDs for battery level) 0 20
2351 649 2717 S Display LCD screen showing battery percentage and estimated remaining time 0 20
1615 649 2814 S Display Smart digital (TFT/OLED) display showing real-time battery level, input/output wattage, and power flow 0 20
2336 649 2672 S Display Digital percentage display 0 20
2333 649 2667 S Display 4‑LED battery-level indicator 0 20
2315 649 2597 S Display LCD screen showing battery level and estimated time remaining 0 20
3131 649 3544 S Display Digital display showing remanining battery percentage, estimated time to full charge 0 20
2310 649 2589 S Display Color LCD showing battery level and estimated run/charge time 0 20
2335 649 2672 S Display Digital percentage display 0 20
2310 683 2639 S Input Anker 533 10000mAh 30W Power Bank with Built-in USB-C Cable 0 310
2942 683 3337 S Input USB‑C rechargeable at 5 V⎓3 A or 9 V⎓2 A (Max 18W input) 0 310
3131 683 3548 S Input USB‑C (up to 30 W PD; 20 W typical input) 0 310
2333 683 2670 S Input USB‑C (up to 10–12 W) 0 310
2351 683 2720 S Input USB‑C (18 W max: 5 V ⎓ 3 A, 9 V ⎓ 2 A, 12 V ⎓ 1.5 A) 0 310
1615 683 2815 S Input USB‑C input supports up to 100 W recharge — fully replenishes in approximately 1 hour 15 minutes 0 310
2335 683 2675 S Input USB‑C (up to 15 W) 0 310
3109 683 3520 S Input USB‑C (PD, up to 30 W: 5–20 V/1.5–3 A) 0 310
2336 683 2679 S Input USB‑C (up to 20 W) via cable and port 0 310
2942 684 3338 S Output USB‑C wired up to 22.5 W max (5 V/3 A, 9 V/2.22 A, 10 V/2.25 A), with combined output capped at ~18 W when both ports are used 0 320
3109 684 3521 S Output USB-C (max 30W each), USB-A (max 18W per port) 0 320
3131 684 3549 S Output 30 W total power—supports charging your phone, tablet, or even lightweight laptop; charges up to 3 devices simultaneously 0 320
2335 684 2676 S Output Up to 15 W total across USB‑C and USB‑A; can charge up to 3 devices simultaneously (dual output plus pass-through) 0 320
2315 684 2600 S Output Up to 25 W total 0 320
2310 684 2592 S Output Up to 30 W total, with USB‑A offering up to 22.5 W 0 320
2333 684 2671 S Output Wireless: up to 7.5 W; USB‑C wired: up to 12 W; simultaneous wired + wireless allowed (total capped at 12 W) 0 320
2336 684 2680 S Output Up to 22.5 W from any output; can charge three devices simultaneously 0 320
1615 684 2816 S Output USB‑C ports: each up to 100 W, USB‑A port: up to 18 W PowerIQ 0 320
2351 684 2721 S Output USB‑C ports: up to 30 W max, USB‑A: up to 18 W, Total output capped at 30 W 0 320
2351 645 2718 S Ports 2 × USB‑C (one supports input/output up to 30 W, the other output), 1 × USB‑A 0 110
2310 645 2590 S Ports 1 × built-in USB‑C cable (30 W bi-directional), 1 × USB‑C port (30 W max), 1 × USB‑A port (22.5 W max) 0 110
1609 645 2091 S Ports 1 × USB-C 0 110
2336 645 2677 S Ports • Built-in USB‑C cable (up to 22.5 W PD output), • 1 × USB‑C port (PD, up to 22.5 W), • 1 × USB‑A port (up to 22.5 W) 0 110
1615 645 2097 S Ports 1 USB-A, 2 USB-C 0 110
3131 645 3545 S Ports USB-C (30W input and output seperately), USB-A ( 22.5 W output for charging legacy devices) 0 110
1600 645 2092 S Ports 1 × USB-C Cable, 1 × USB-C Port 0 110
2335 645 2673 S Ports 2 × USB‑A output (up to 15 W shared), 1 × USB‑C input/output (up to 15 W) 0 110
3109 645 3518 S Ports 2 × USB‑C (input/output) supporting up to 30 W PD each, 2 × USB‑A with PowerIQ tech (up to 18 W each) 0 110
2315 645 2598 S Ports 2 × USB‑C, 1 × USB‑A 0 110
2333 645 2668 S Ports 1 × USB‑C (bi-directional, up to 12 W), Magnetic Qi wireless pad (up to 7.5 W) 0 110