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 (
    16660, 12803, 16662, 12307, 14649, 12460, 
    12685, 16347, 16349, 14273, 14078, 
    14950, 15430, 13924, 14945, 13458, 
    15736
  )

Query time 0.01154

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": 58,
          "filtered": 100,
          "index_condition": "gp.group_id in (16660,12803,16662,12307,14649,12460,12685,16347,16349,14273,14078,14950,15430,13924,14945,13458,15736)"
        }
      },
      {
        "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
19793 15483 68827 12307
19793 15482 68826 12307
19793 6070 68828 12307
19958 16466 69749 12460
19958 16465 69748 12460
19958 5726 69750 12460
20227 18194 70800 12685
20227 4581 70799 12685
20346 18484 71204 12803
20346 4237 71205 12803
21066 21109 73560 13458
21066 21108 73559 13458
21066 21107 73558 13458
21066 21106 73557 13458
21066 21105 73556 13458
21066 21104 73555 13458
21066 21103 73554 13458
21066 21102 73553 13458
21066 21101 73552 13458
21066 2449 73561 13458
21592 23026 75512 13924
21592 1542 75511 13924
21757 1266 76075 14078
21757 23502 76076 14078
21972 926 76910 14273
21972 24263 76909 14273
22383 335 78476 14649
22383 25887 78472 14649
22383 25888 78473 14649
22383 25889 78474 14649
22383 25890 78475 14649
22829 26857 79640 14945
22829 27053 79641 14945
22834 26851 79650 14950
22834 27058 79651 14950
23313 32308 80876 15430
23314 32308 80878 15430
23313 32360 80876 15430
23314 32360 80879 15430
23313 32361 80876 15430
23314 32361 80880 15430
23313 32362 80876 15430
23314 32362 80881 15430
23313 32363 80877 15430
23314 32363 80878 15430
23313 32364 80877 15430
23314 32364 80879 15430
23313 32365 80877 15430
23314 32365 80880 15430
23313 32366 80877 15430
23314 32366 80881 15430
23609 35735 81862 15736
23609 35755 81863 15736
24137 40754 84125 16347
24138 40754 84128 16347
24137 40774 84125 16347
24138 40774 84130 16347
24137 40773 84125 16347
24138 40773 84129 16347
24137 40775 84126 16347
24138 40775 84128 16347
24137 40776 84126 16347
24138 40776 84129 16347
24137 40777 84126 16347
24138 40777 84130 16347
24137 40778 84127 16347
24138 40778 84128 16347
24137 40779 84127 16347
24138 40779 84129 16347
24137 40780 84127 16347
24138 40780 84130 16347
24141 40807 84144 16349
24141 40813 84145 16349
24141 40814 84146 16349
24436 4588 85225 16660
24436 43796 85226 16660
24436 4579 85225 16662
24436 43798 85226 16662