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 (
    12803, 16662, 12307, 14649, 12460, 16443, 
    12685, 12668, 16347, 17087, 14948, 
    16349
  )

Query time 0.00498

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": 45,
          "filtered": 100,
          "index_condition": "gp.group_id in (12803,16662,12307,14649,12460,16443,12685,12668,16347,17087,14948,16349)"
        }
      },
      {
        "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
20210 18134 70722 12668
20210 18133 70721 12668
20210 18132 70720 12668
20210 18131 70719 12668
20210 18130 70718 12668
20210 4795 70723 12668
20227 18194 70800 12685
20227 4581 70799 12685
20346 18484 71204 12803
20346 4237 71205 12803
22383 335 78476 14649
22383 25887 78472 14649
22383 25888 78473 14649
22383 25889 78474 14649
22383 25890 78475 14649
22832 26853 79646 14948
22832 27056 79647 14948
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
24191 37881 84291 16443
24191 42358 84766 16443
24191 41144 84292 16443
24191 41145 84293 16443
24436 4579 85225 16662
24436 43798 85226 16662
24836 47652 86606 17087
24836 47685 86607 17087
24836 47686 86608 17087