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 = 'vi' 
  AND gp.group_id IN (
    15339, 14809, 17105, 15889, 13449, 12245, 
    14712, 14525, 14681, 14804, 14675, 
    13370, 14806, 13426, 13257, 13459, 
    12970
  )

Query time 0.01320

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "gp",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "rows": 76,
          "filtered": 100,
          "index_condition": "gp.group_id in (15339,14809,17105,15889,13449,12245,14712,14525,14681,14804,14675,13370,14806,13426,13257,13459,12970)"
        }
      },
      {
        "table": {
          "table_name": "gpf",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "ref": ["dev_db.gp.group_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "idx_product_feature_variant_id",
          "key_length": "12",
          "used_key_parts": ["product_id", "feature_id", "lang_code"],
          "ref": ["dev_db.gp.product_id", "dev_db.gpf.feature_id", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "pfv.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
19723 15222 68596 12245
19723 15221 68595 12245
19723 15220 68594 12245
19723 15219 68593 12245
19723 15218 68592 12245
19723 6361 68597 12245
19723 48798 87019 12245
19723 48799 87020 12245
20527 18931 71774 12970
20527 18930 71773 12970
20527 3669 71773 12970
20856 20624 72885 13257
20856 20623 72884 13257
20856 20622 72883 13257
20856 20621 72882 13257
20856 20620 72881 13257
20856 20619 72880 13257
20856 20618 72879 13257
20856 20617 72878 13257
20856 20616 72877 13257
20856 2943 72886 13257
20977 20930 73300 13370
20977 2576 73301 13370
21034 21061 73481 13426
21034 2492 73480 13426
21057 21084 73527 13449
21057 2458 73526 13449
21067 21110 73563 13459
21067 2448 73562 13459
22245 25183 77946 14525
22245 25182 77945 14525
22245 532 77947 14525
22245 25180 77943 14525
22245 25181 77944 14525
22413 294 78622 14675
22413 26109 78621 14675
22419 26132 78650 14681
22419 286 78651 14681
22458 26324 78803 14712
22458 26323 78802 14712
22458 26322 78801 14712
22458 223 78804 14712
22551 60 79179 14804
22551 26603 79175 14804
22551 26604 79176 14804
22551 26605 79177 14804
22551 26606 79178 14804
22553 58 79188 14806
22553 26608 79182 14806
22553 26609 79183 14806
22553 26610 79184 14806
22553 26611 79185 14806
22553 26612 79186 14806
22553 26613 79187 14806
22556 52 79197 14809
22556 26619 79196 14809
19630 40326 83866 15339
19630 40325 83865 15339
19630 40324 83864 15339
19630 40323 83863 15339
19630 40322 83862 15339
19630 40321 83861 15339
19630 40320 68256 15339
19630 31784 68254 15339
19630 27378 68257 15339
19630 31785 68255 15339
19630 42263 84727 15339
19630 42262 84726 15339
19630 31786 68258 15339
23770 37099 82557 15889
23769 37099 82554 15889
23770 37100 82558 15889
23769 37100 82554 15889
23770 37101 82557 15889
23769 37101 82555 15889
23770 37102 82558 15889
23769 37102 82555 15889
23770 37104 82558 15889
23769 37104 82556 15889
23770 37103 82557 15889
23769 37103 82556 15889
24850 5621 86656 17105
24850 47915 86657 17105
24850 47916 86658 17105
24850 47917 86659 17105
24850 47918 86660 17105
24850 47919 86661 17105
24850 47920 86662 17105