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 (
    14225, 13929, 16458, 12426, 15356, 14606, 
    12424, 12171, 12905, 15616, 14604, 
    12309, 15617, 15875, 13377, 13374, 
    16100, 13376
  )

Query time 0.01091

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": 101,
          "filtered": 100,
          "index_condition": "gp.group_id in (14225,13929,16458,12426,15356,14606,12424,12171,12905,15616,14604,12309,15617,15875,13377,13374,16100,13376)"
        }
      },
      {
        "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
19643 14909 68320 12171
19643 6562 68321 12171
19795 15493 68839 12309
19795 15492 68838 12309
19795 15491 68837 12309
19795 15490 68836 12309
19795 6068 68840 12309
19922 16370 69618 12424
19922 5835 69617 12424
19924 16372 69622 12426
19924 5833 69621 12426
20454 18755 71557 12905
20454 18754 71556 12905
20454 3885 71556 12905
20981 20934 73309 13374
20981 2566 73308 13374
20983 20936 73313 13376
20983 2564 73312 13376
20984 20937 73315 13377
20984 2563 73314 13377
21597 23031 75522 13929
21597 1534 75521 13929
21924 24140 76738 14225
21924 24139 76737 14225
21924 1042 76739 14225
22336 25733 78285 14604
22336 25732 78284 14604
22336 402 78286 14604
22338 400 78292 14606
22338 48217 78291 14606
23237 31641 80587 15356
23237 31820 80588 15356
23237 31821 80589 15356
23490 33716 81505 15616
23490 33793 81506 15616
23490 33794 81507 15616
23490 33795 81508 15616
23490 33717 81505 15617
23490 33796 81506 15617
23490 33797 81507 15617
23490 33798 81508 15617
21265 36766 74388 15875
23755 36766 82449 15875
21265 27364 74388 15875
23755 27364 82448 15875
21265 36767 74388 15875
23755 36767 82450 15875
21265 36768 74388 15875
23755 36768 82451 15875
21265 36769 74388 15875
23755 36769 82452 15875
21265 36770 74389 15875
23755 36770 82448 15875
21265 36771 74389 15875
23755 36771 82449 15875
21265 36772 74389 15875
23755 36772 82450 15875
21265 36773 74389 15875
23755 36773 82451 15875
21265 36774 74389 15875
23755 36774 82452 15875
21265 36775 74390 15875
23755 36775 82448 15875
21265 36776 74390 15875
23755 36776 82449 15875
21265 36777 74390 15875
23755 36777 82450 15875
21265 36778 74390 15875
23755 36778 82451 15875
21265 36779 74390 15875
23755 36779 82452 15875
21265 36780 74391 15875
23755 36780 82448 15875
21265 36781 74391 15875
23755 36781 82449 15875
21265 36782 74391 15875
23755 36782 82450 15875
21265 36783 74391 15875
23755 36783 82451 15875
21265 36784 74391 15875
23755 36784 82452 15875
21265 36785 74392 15875
23755 36785 82448 15875
21265 36786 74392 15875
23755 36786 82449 15875
21265 36787 74392 15875
23755 36787 82450 15875
21265 36788 74392 15875
23755 36788 82451 15875
21265 36789 74392 15875
23755 36789 82452 15875
21265 36790 74393 15875
23755 36790 82448 15875
21265 36791 74393 15875
23755 36791 82449 15875
21265 36792 74393 15875
23755 36792 82450 15875
21265 36793 74393 15875
23755 36793 82451 15875
21265 36794 74393 15875
23755 36794 82452 15875
21265 36795 74394 15875
23755 36795 82448 15875
21265 36796 74394 15875
23755 36796 82449 15875
21265 36797 74394 15875
23755 36797 82450 15875
21265 36798 74394 15875
23755 36798 82451 15875
21265 36799 74394 15875
23755 36799 82452 15875
21265 36800 74395 15875
23755 36800 82448 15875
21265 36801 74395 15875
23755 36801 82449 15875
21265 36802 74395 15875
23755 36802 82450 15875
21265 36803 74395 15875
23755 36803 82451 15875
21265 36804 74395 15875
23755 36804 82452 15875
21265 36805 74396 15875
23755 36805 82448 15875
21265 36806 74396 15875
23755 36806 82449 15875
21265 36807 74396 15875
23755 36807 82450 15875
21265 36808 74396 15875
23755 36808 82451 15875
21265 36809 74396 15875
23755 36809 82452 15875
21265 36810 74397 15875
23755 36810 82448 15875
21265 36811 74397 15875
23755 36811 82449 15875
21265 36812 74397 15875
23755 36812 82450 15875
21265 36813 74397 15875
23755 36813 82451 15875
21265 36814 74397 15875
23755 36814 82452 15875
21265 36815 74398 15875
23755 36815 82448 15875
21265 36816 74398 15875
23755 36816 82449 15875
21265 36817 74398 15875
23755 36817 82450 15875
21265 36818 74398 15875
23755 36818 82451 15875
21265 36819 74398 15875
23755 36819 82452 15875
21265 36820 74399 15875
23755 36820 82448 15875
21265 36821 74399 15875
23755 36821 82449 15875
21265 36822 74399 15875
23755 36822 82450 15875
21265 36823 74399 15875
23755 36823 82451 15875
21265 36824 74399 15875
23755 36824 82452 15875
23924 38146 83207 16100
23924 38328 83208 16100
23924 38329 83209 16100
24202 41249 84334 16458
24202 41248 84333 16458
24202 41247 84332 16458
24202 41246 84331 16458
24202 41245 84330 16458
24202 41231 84329 16458