SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  fv.position, 
  fvd.variant 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_feature_variants AS fv ON pfv.feature_id = fv.feature_id 
  AND pfv.variant_id = fv.variant_id 
  INNER JOIN cscart_product_feature_variant_descriptions AS fvd ON pfv.variant_id = fvd.variant_id 
  AND fvd.lang_code = 'en' 
WHERE 
  pfv.feature_id IN (656, 648, 658, 643, 649, 766) 
  AND pfv.product_id IN (
    5750, 7013, 5739, 5727, 4432, 2574, 247, 
    944, 478, 985, 3754, 525, 2478, 10284, 
    6151, 1274, 908, 1930, 2527, 1134, 5696, 
    4022, 2490, 2698, 1406, 5721, 508, 3090, 
    5621, 4416, 1266, 5724, 3974, 851, 1126, 
    4067, 8483, 3605, 2509, 2752, 1428, 
    1263, 3883, 2471, 2576, 5944, 4143, 
    2395, 2620, 4399, 1143, 1256, 3776, 
    4951, 1319, 2310, 1273, 4526, 2502, 
    2473, 2508, 1532, 2565, 2300, 2580, 
    2638, 3155, 3834, 2301, 4294, 4316, 
    2737, 2550, 2559, 2363, 4126, 4796, 
    5892, 5625, 2845, 8499, 2599, 2822, 
    8502, 8501, 2640, 2646, 2503, 2602, 
    2459, 2431, 5899, 5934
  ) 
  AND pfv.lang_code = 'en'

Query time 0.00803

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "186.16"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "pfv",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "variant_id",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "feature_id",
            "product_id"
          ],
          "key_length": "6",
          "rows_examined_per_scan": 558,
          "rows_produced_per_join": 181,
          "filtered": "32.52",
          "using_index": true,
          "cost_info": {
            "read_cost": "99.29",
            "eval_cost": "18.14",
            "prefix_cost": "117.43",
            "data_read_per_join": "140K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ],
          "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (656,648,658,643,649,766)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (5750,7013,5739,5727,4432,2574,247,944,478,985,3754,525,2478,10284,6151,1274,908,1930,2527,1134,5696,4022,2490,2698,1406,5721,508,3090,5621,4416,1266,5724,3974,851,1126,4067,8483,3605,2509,2752,1428,1263,3883,2471,2576,5944,4143,2395,2620,4399,1143,1256,3776,4951,1319,2310,1273,4526,2502,2473,2508,1532,2565,2300,2580,2638,3155,3834,2301,4294,4316,2737,2550,2559,2363,4126,4796,5892,5625,2845,8499,2599,2822,8502,8501,2640,2646,2503,2602,2459,2431,5899,5934)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`lang_code` = 'en'))"
        }
      },
      {
        "table": {
          "table_name": "fv",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY",
            "feature_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id"
          ],
          "key_length": "3",
          "ref": [
            "softwarepirmam_hewadelivard_cscart_4.pfv.variant_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 14,
          "filtered": "8.23",
          "cost_info": {
            "read_cost": "45.36",
            "eval_cost": "1.49",
            "prefix_cost": "180.93",
            "data_read_per_join": "17K"
          },
          "used_columns": [
            "variant_id",
            "feature_id",
            "position"
          ],
          "attached_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`fv`.`feature_id` = `softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id`)"
        }
      },
      {
        "table": {
          "table_name": "fvd",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id",
            "lang_code"
          ],
          "key_length": "9",
          "ref": [
            "softwarepirmam_hewadelivard_cscart_4.pfv.variant_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 14,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "3.73",
            "eval_cost": "1.49",
            "prefix_cost": "186.16",
            "data_read_per_join": "45K"
          },
          "used_columns": [
            "variant_id",
            "variant",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id position variant
643 478 1526 60 8GB
643 508 1526 60 8GB
643 525 1526 60 8GB
643 851 1711 20 2GB
643 944 1526 60 8GB
643 985 1526 60 8GB
643 1126 1619 10 1GB
643 1134 1696 15 1.5GB
643 1256 1684 40 4GB
643 1263 1526 60 8GB
643 1266 1587 80 12GB
643 1273 1587 80 12GB
643 1274 1684 40 4GB
643 1319 1526 60 8GB
643 1406 1526 60 8GB
643 1428 1526 60 8GB
643 2300 1526 60 8GB
643 2301 1592 90 16GB
643 2459 1711 20 2GB
643 2471 1592 90 16GB
643 2473 1587 80 12GB
643 2478 1587 80 12GB
643 2490 1587 80 12GB
643 2502 1592 90 16GB
643 2503 1587 80 12GB
643 2508 1587 80 12GB
643 2509 1587 80 12GB
643 2527 2870 30 3GB
643 2550 1587 80 12GB
643 2565 1526 60 8GB
643 2574 1526 60 8GB
643 2576 1587 80 12GB
643 2580 1592 90 16GB
643 2599 1587 80 12GB
643 2602 1587 80 12GB
643 2620 1684 40 4GB
643 2638 1526 60 8GB
643 2640 1592 90 16GB
643 2646 1592 90 16GB
643 4067 1592 90 16GB
643 4316 1526 60 8GB
643 4416 1526 60 8GB
643 4432 1684 40 4GB
643 4526 1587 80 12GB
643 4796 1587 80 12GB
643 5727 1587 80 12GB
643 5739 1526 60 8GB
643 5750 1587 80 12GB
643 7013 1526 60 8GB
643 8483 1711 20 2GB
643 10284 1591 50 6GB
648 478 1561 10 128GB
648 508 1561 10 128GB
648 525 1562 20 256GB
648 851 1687 7 64GB
648 944 1561 10 128GB
648 985 1561 10 128GB
648 1126 1686 6 32GB
648 1134 1687 7 64GB
648 1256 1687 7 64GB
648 1263 1561 10 128GB
648 1266 1562 20 256GB
648 1273 1562 20 256GB
648 1274 1687 7 64GB
648 1319 1562 20 256GB
648 1406 1562 20 256GB
648 1428 1561 10 128GB
648 2300 1562 20 256GB
648 2301 1562 20 256GB
648 2459 2588 4 8GB
648 2471 1563 30 512GB
648 2473 1563 30 512GB
648 2478 1564 40 1TB
648 2490 1563 30 512GB
648 2502 1563 30 512GB
648 2503 1563 30 512GB
648 2508 1563 30 512GB
648 2509 1562 20 256GB
648 2527 1687 7 64GB
648 2550 1563 30 512GB
648 2565 1562 20 256GB
648 2574 1562 20 256GB
648 2576 1562 20 256GB
648 2580 1563 30 512GB
648 2599 1563 30 512GB
648 2602 1563 30 512GB
648 2620 1561 10 128GB
648 2638 1562 20 256GB
648 2640 1562 20 256GB
648 2646 1563 30 512GB
648 4067 1563 30 512GB
648 4126 1686 6 32GB
648 4143 1686 6 32GB
648 4399 1561 10 128GB
648 4416 1561 10 128GB
648 4432 1561 10 128GB
648 4526 1562 20 256GB
648 4796 1563 30 512GB
648 5727 1562 20 256GB
648 5739 1562 20 256GB
648 5750 1562 20 256GB
648 7013 1562 20 256GB
648 8483 2588 4 8GB
648 10284 1561 10 128GB
649 247 1719 0 1.74"
649 478 1518 0 6.1"
649 508 1518 0 6.1"
649 525 1515 0 6.9"
649 851 1615 0 49mm
649 944 1516 0 6.3"
649 985 1517 0 6.7"
649 1126 1612 0 40mm
649 1134 1614 0 42mm
649 1256 1517 0 6.7"
649 1263 1756 0 6.2"
649 1266 1537 0 6.8"
649 1273 8932 0 7.6"
649 1274 1571 0 11"
649 1319 1517 0 6.7"
649 1406 1517 0 6.7"
649 1428 1800 0 6.6"
649 1930 2136 10 14"
649 2300 1570 0 13"
649 2301 1570 0 13"
649 2310 2589 0 Color LCD showing battery level and estimated run/charge time
649 2471 2896 0 6.73"
649 2473 2901 0 6.36"
649 2478 1536 0 6.67"
649 2490 1536 0 6.67"
649 2502 2896 0 6.73"
649 2503 2901 0 6.36"
649 2508 1654 0 11.2"
649 2509 1654 0 11.2"
649 2527 2935 0 6.88"
649 2550 1536 0 6.67"
649 2565 1536 0 6.67"
649 2574 2994 0 12.1"
649 2576 1536 0 6.67"
649 2580 1536 0 6.67"
649 2599 1536 0 6.67"
649 2602 1536 0 6.67"
649 2620 3016 0 6.71"
649 2638 2994 0 12.1"
649 2640 2555 0 13.5"
649 2646 1570 0 13"
649 3754 1570 0 13"
649 3776 2115 0 15"
649 3883 2136 10 14"
649 3974 2137 20 16"
649 4067 2137 20 16"
649 4316 1570 0 13"
649 4399 1571 0 11"
649 4416 1572 0 8.3"
649 4432 1571 0 11"
649 4526 1515 0 6.9"
649 4796 1871 0 12.4"
649 5727 1516 0 6.3"
649 5739 1516 0 6.3"
649 5750 6680 0 6.5"
649 7013 1515 0 6.9"
649 10284 1518 0 6.1"
656 247 1724 0 Obsidian Black
656 478 1556 0 Ultramarine
656 508 1559 0 white
656 525 1552 4 Desert Titanium
656 851 1553 11 Natural Titanium
656 908 1653 0 Titan Grey
656 944 1553 11 Natural Titanium
656 985 1660 100 Frost Black
656 1126 1631 20 Midnight Aluminum
656 1134 1634 10 Jet Black Aluminum
656 1143 1600 0 Blue
656 1256 1560 0 Black
656 1263 1787 0 Amber Yellow
656 1266 1554 13 Black Titanium
656 1273 1778 0 Shiny Silver
656 1274 1912 0 Graphite
656 1319 1751 0 Awesome Light Gray
656 1406 1775 1147 Mint
656 1428 1781 0 Wonderful Navy
656 1532 1560 0 Black
656 1930 1560 0 Black
656 2300 1916 0 Platinum Silver
656 2301 1916 0 Platinum Silver
656 2310 1776 1148 Sky Blue
656 2363 2758 0 Gold
656 2395 1558 80 Pink
656 2431 1559 0 white
656 2459 1560 0 Black
656 2471 1641 0 Silver Chrome
656 2473 2903 0 Liquid Silver
656 2478 1653 0 Titan Grey
656 2490 2910 0 Lemon Green
656 2502 1559 0 white
656 2503 2919 0 Jade Green
656 2508 2077 0 Grey
656 2509 1560 0 Black
656 2527 1600 0 Blue
656 2550 2441 0 Coral Green
656 2559 1560 0 Black
656 2565 2985 0 Aurora Purple
656 2574 2993 0 Mint Green
656 2576 1596 0 Green
656 2580 1560 0 Black
656 2599 1595 0 Yellow
656 2602 1560 0 Black
656 2620 1559 0 white
656 2638 1560 0 Black
656 2640 1916 0 Platinum Silver
656 2646 1916 0 Platinum Silver
656 2698 2985 0 Aurora Purple
656 2737 1560 0 Black
656 2752 1724 0 Obsidian Black
656 2822 1560 0 Black
656 2845 1600 0 Blue
656 3090 1560 0 Black
656 3155 1560 0 Black
656 3605 1560 0 Black
656 3754 1599 0 Midnight Black
656 3776 1610 30 Starlight
656 3834 1559 0 white
656 3883 1560 0 Black
656 3974 1607 0 silver
656 4022 1607 0 silver
656 4067 2758 0 Gold
656 4126 1600 0 Blue
656 4143 1560 0 Black
656 4294 1912 0 Graphite
656 4316 1560 0 Black
656 4399 1681 32 Light Purple
656 4416 1600 0 Blue
656 4432 1595 0 Yellow
656 4526 1554 13 Black Titanium
656 4796 1914 0 Gray
656 4951 1560 0 Black
656 5621 1776 1148 Sky Blue
656 5625 1560 0 Black
656 5696 1681 32 Light Purple
656 5721 1607 0 silver
656 5724 2758 0 Gold
656 5727 7521 0 Cosmic Orange
656 5739 1784 0 Lavender
656 5750 1776 1148 Sky Blue
656 5892 7064 0 Deep blue
656 5899 1559 0 white
656 5934 1559 0 white
656 5944 1560 0 Black
656 6151 7191 0 Black and silver
656 7013 7521 0 Cosmic Orange
656 8483 1560 0 Black
656 8499 1560 0 Black
656 8501 1560 0 Black
656 8502 1560 0 Black
656 10284 1560 0 Black
658 1930 4765 40 10-core CPU and 10-core GPU, 16GB, 512GB SSD
658 2737 4478 0 A2331
658 3155 4457 0 A2642
658 3605 4568 0 A2699
658 3754 4733 10 M4 chip with 10-core CPU and 8-core GPU, 16GB, 256GB SSD
658 3776 4737 15 M4 chip with 10-core CPU and 10-core GPU, 16GB, 256GB SSD
658 3883 4839 70 M4 Pro (12-core CPU and 16-core GPU), 24GB, 512GB SSD
658 3974 4852 100 M4 Pro (14-core CPU and 20-core GPU), 24GB, 512GB SSD
658 4022 4839 70 M4 Pro (12-core CPU and 16-core GPU), 24GB, 512GB SSD
658 4316 5473 210 512GB with standard glass
766 1532 8558 70 65"
766 2459 8558 70 65"
766 8483 8560 20 43"
766 8499 8556 120 85"
766 8501 8557 40 55"
766 8502 8553 90 75"