SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  gp.group_id 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_variation_group_products AS gp ON pfv.product_id = gp.product_id 
  INNER JOIN cscart_product_variation_group_features AS gpf ON gpf.group_id = gp.group_id 
  AND gpf.feature_id = pfv.feature_id 
WHERE 
  pfv.lang_code = 'en' 
  AND gp.group_id IN (
    620, 623, 260, 627, 608, 628, 410, 647, 
    559, 354, 433, 372, 642, 195, 646, 571, 
    306, 675, 305, 625, 409, 547, 261, 453, 
    562, 561, 556, 364, 363, 622, 621, 404, 
    282, 552, 661, 352, 564, 346, 345, 418, 
    252, 681, 155, 466, 666, 353, 381, 212, 
    266, 664, 383, 648, 432, 373, 382, 673, 
    689
  )

Query time 0.00340

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "159.61"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "gpf",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "rows_examined_per_scan": 57,
          "rows_produced_per_join": 57,
          "filtered": "100.00",
          "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gpf`.`group_id` in (620,623,260,627,608,628,410,647,559,354,433,372,642,195,646,571,306,675,305,625,409,547,261,453,562,561,556,364,363,622,621,404,282,552,661,352,564,346,345,418,252,681,155,466,666,353,381,212,266,664,383,648,432,373,382,673,689))",
          "cost_info": {
            "read_cost": "34.21",
            "eval_cost": "5.70",
            "prefix_cost": "39.91",
            "data_read_per_join": "5K"
          },
          "used_columns": [
            "feature_id",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "gp",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "ref": [
            "softwarepirmam_hewadelivard_cscart_4.gpf.group_id"
          ],
          "rows_examined_per_scan": 3,
          "rows_produced_per_join": 171,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "42.75",
            "eval_cost": "17.10",
            "prefix_cost": "99.76",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "product_id",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "fpl",
          "used_key_parts": [
            "feature_id",
            "product_id",
            "lang_code"
          ],
          "key_length": "12",
          "ref": [
            "softwarepirmam_hewadelivard_cscart_4.gpf.feature_id",
            "softwarepirmam_hewadelivard_cscart_4.gp.product_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 171,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "42.75",
            "eval_cost": "17.10",
            "prefix_cost": "159.61",
            "data_read_per_join": "132K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
656 2227 1600 155
656 2226 2315 155
656 2430 1560 195
656 2431 1559 195
656 2522 1560 212
656 2655 1559 252
656 2698 2985 260
656 2702 1560 261
656 2703 2993 261
656 2719 1600 266
656 2728 2993 266
656 2805 1560 282
656 2808 1559 282
656 2922 1560 305
656 2923 1559 305
656 2924 1560 306
656 2925 1559 306
656 3112 1560 345
656 3113 1559 345
656 3114 1560 346
656 3115 1559 346
656 3150 1560 352
656 3151 1559 352
656 3042 1560 353
656 3153 1559 353
656 3155 1560 354
656 3156 1559 354
656 3213 1559 363
656 3214 1560 363
656 3216 1560 364
656 3215 1559 364
656 2737 1560 372
656 3255 1559 372
656 3290 1560 373
656 3289 1559 373
656 3377 1559 381
656 3378 1560 381
656 3382 1560 382
656 3383 1559 382
656 3385 1560 383
656 3386 1559 383
656 3552 1559 404
656 3553 1560 404
656 3604 1559 409
656 3603 1560 409
656 3605 1560 410
656 3606 1559 410
656 3664 1560 418
656 3665 1559 418
656 3832 1560 432
656 3831 1559 432
656 3834 1559 433
656 3835 1560 433
656 4024 1607 453
656 3649 1560 453
656 4026 2758 453
656 4025 1609 453
656 4110 1560 466
656 4111 1913 466
656 3811 1558 466
656 4899 6255 547
656 4898 1598 547
656 4897 1596 547
656 4896 1559 547
656 4894 1560 547
656 4915 6250 552
656 4917 1556 552
656 4924 6255 552
656 4923 6254 552
656 4922 6253 552
656 4921 6252 552
656 4920 1914 552
656 4919 1596 552
656 4918 1560 552
656 4925 6256 552
656 4927 6258 552
656 4926 6257 552
656 4944 1559 556
656 4942 1560 556
656 4945 1558 556
656 4951 1560 559
656 4953 1559 559
656 4959 1559 561
656 4958 1560 561
656 4973 6258 562
656 4972 6257 562
656 4971 6256 562
656 4970 6255 562
656 4969 6254 562
656 4968 6252 562
656 4967 6250 562
656 4966 1914 562
656 4965 1596 562
656 4964 1560 562
656 4963 1556 562
656 4962 6253 562
656 4987 6258 564
656 4986 6257 564
656 4985 6255 564
656 4984 6254 564
656 4977 1556 564
656 4976 6256 564
656 4981 6250 564
656 4980 1914 564
656 4979 1596 564
656 4978 1560 564
656 4982 6252 564
656 4983 6253 564
656 5117 1560 571
656 5116 1559 571
656 5114 1558 571
656 5618 1558 608
656 5619 1559 608
656 5620 6971 608
656 5621 1776 608
656 6149 3809 620
656 5685 1560 620
656 6148 1600 620
656 6150 1596 620
656 6151 7191 620
656 5687 2077 621
656 5688 6250 621
656 5689 1754 621
656 5690 1681 621
656 5691 2077 622
656 5692 6250 622
656 5693 1754 622
656 5694 1681 622
656 5696 1681 623
656 5697 2077 623
656 5698 6250 623
656 5699 1754 623
656 5703 6250 625
656 5704 1559 625
656 5705 2077 625
656 5721 1607 627
656 5722 1912 627
656 5723 2758 627
656 5724 2758 628
656 5725 1607 628
656 5726 1912 628
656 5894 6991 642
656 5893 1784 642
656 5892 7064 642
656 5934 1559 646
656 5935 1560 646
656 5944 1560 647
656 5945 2077 647
656 5946 7010 647
656 5947 1610 647
656 6119 1599 647
656 6120 6250 647
656 6121 6252 647
656 6122 6253 647
656 6123 6257 647
656 6124 6258 647
656 6125 6360 647
656 5948 1560 648
656 6128 6250 648
656 6127 2077 648
656 6126 1599 648
656 6129 6252 648
656 6130 6253 648
656 6131 6257 648
656 6132 6258 648
656 6133 6360 648
656 6134 7010 648
656 6135 1610 648
656 6026 1596 661
656 6025 3421 661
656 6027 1913 661
656 6028 2460 661
656 6029 6360 661
656 6030 1755 661
656 6041 1598 664
656 6042 1556 664
656 6043 1560 664
656 6044 1596 664
656 6045 6252 664
656 6046 6258 664
656 6047 7534 664
656 6054 1598 666
656 6055 1556 666
656 6056 1560 666
656 6057 1596 666
656 6058 6252 666
656 6059 6258 666
656 5956 1560 673
656 6087 1600 673
656 6088 6284 673
656 6089 6285 673
656 6090 6290 673
656 6091 6360 673
656 6092 6995 673
656 6093 7064 673
656 6098 7801 675
656 6100 1595 675
656 5683 1560 681
656 6152 1600 681
656 6153 1913 681
656 6154 5517 681
656 6155 1753 681
656 6196 1596 689
656 6195 1560 689
656 6194 1556 689
656 6197 2077 689
656 6198 6250 689
656 6199 6252 689
656 6200 6253 689
656 6201 6255 689
656 6202 6256 689