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 (
    13268, 14224, 13236, 12327, 12454, 13250, 
    12352, 12463, 13421, 12585, 12547, 
    12528, 13151, 14216, 15838, 12956
  )

Query time 0.02382

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": 53,
          "filtered": 100,
          "index_condition": "gp.group_id in (13268,14224,13236,12327,12454,13250,12352,12463,13421,12585,12547,12528,13151,14216,15838,12956)"
        }
      },
      {
        "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
19817 15625 68920 12327
19817 15624 68919 12327
19817 15623 68918 12327
19817 15622 68917 12327
19817 6044 68921 12327
19842 15700 69020 12352
19842 15699 69019 12352
19842 15698 69018 12352
19842 15697 69017 12352
19842 15696 69016 12352
19842 15695 69015 12352
19842 15694 69021 12352
19842 5958 69014 12352
19952 16440 69717 12454
19952 5734 69718 12454
19961 16481 69767 12463
19961 16480 69766 12463
19961 16479 69765 12463
19961 16478 69764 12463
19961 5723 69768 12463
20032 16781 70039 12528
20032 16780 70038 12528
20032 16779 70037 12528
20032 16778 70036 12528
20032 16777 70040 12528
20032 5476 70035 12528
20051 16843 70121 12547
20051 5416 70120 12547
20101 17722 70355 12585
20101 17721 70356 12585
20101 5154 70354 12585
20512 18905 71737 12956
20512 3712 71738 12956
20721 19587 72393 13151
20721 3196 72394 13151
20835 20552 72792 13236
20835 3006 72793 13236
20835 49607 87350 13236
20849 20588 72842 13250
20849 2954 72843 13250
20867 20658 72930 13268
20867 20657 72929 13268
20867 20656 72928 13268
20867 20655 72927 13268
20867 2912 72931 13268
21029 21056 73471 13421
21029 2497 73470 13421
21915 24120 76709 14216
21915 24119 76708 14216
21915 24118 76707 14216
21915 1056 76710 14216
21923 24135 76732 14224
21923 1043 76736 14224
21923 24138 76735 14224
21923 24137 76734 14224
21923 24136 76733 14224
21923 24134 76731 14224
23715 36492 82326 15838
23715 36636 82327 15838
23715 36637 82328 15838
23715 36638 82329 15838