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 (
    13997, 13991, 15444, 15744, 15930, 17259, 
    17253
  )

Query time 0.01052

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": 49,
          "filtered": 100,
          "index_condition": "gp.group_id in (13997,13991,15444,15744,15930,17259,17253)"
        }
      },
      {
        "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
21667 49327 75773 13991
21667 23267 75771 13991
21667 49328 87264 13991
21667 49326 75772 13991
21674 1402 75795 13997
21674 23283 75791 13997
21674 23284 75792 13997
21674 23285 75793 13997
21674 23286 75794 13997
23332 32324 80929 15444
23332 32409 80930 15444
23620 35730 81898 15744
23621 35730 81905 15744
23620 35810 81898 15744
23621 35810 81906 15744
23620 35811 81898 15744
23621 35811 81907 15744
23620 35812 81898 15744
23621 35812 81908 15744
23620 35813 81898 15744
23621 35813 81909 15744
23620 35814 81899 15744
23621 35814 81905 15744
23620 35815 81899 15744
23621 35815 81906 15744
23620 35816 81899 15744
23621 35816 81907 15744
23620 35817 81899 15744
23621 35817 81908 15744
23620 35818 81899 15744
23621 35818 81909 15744
23620 35819 81900 15744
23621 35819 81905 15744
23620 35820 81900 15744
23621 35820 81906 15744
23620 35821 81900 15744
23621 35821 81907 15744
23620 35822 81900 15744
23621 35822 81908 15744
23620 35823 81900 15744
23621 35823 81909 15744
23620 35824 81901 15744
23621 35824 81905 15744
23620 35825 81901 15744
23621 35825 81906 15744
23620 35826 81901 15744
23621 35826 81907 15744
23620 35827 81901 15744
23621 35827 81908 15744
23620 35828 81901 15744
23621 35828 81909 15744
23620 35829 81902 15744
23621 35829 81905 15744
23620 35830 81902 15744
23621 35830 81906 15744
23620 35831 81902 15744
23621 35831 81907 15744
23620 35832 81902 15744
23621 35832 81908 15744
23620 35833 81902 15744
23621 35833 81909 15744
23620 35834 81903 15744
23621 35834 81905 15744
23620 35835 81903 15744
23621 35835 81906 15744
23620 35836 81903 15744
23621 35836 81907 15744
23620 35837 81903 15744
23621 35837 81908 15744
23620 35838 81903 15744
23621 35838 81909 15744
23620 35839 81904 15744
23621 35839 81905 15744
23620 35840 81904 15744
23621 35840 81906 15744
23620 35841 81904 15744
23621 35841 81907 15744
23620 35842 81904 15744
23621 35842 81908 15744
23620 35843 81904 15744
23621 35843 81909 15744
23794 37413 82708 15930
23794 37441 82709 15930
23794 37442 82710 15930
23794 37443 82711 15930
23794 37444 82712 15930
23794 37445 82713 15930
23794 37446 82714 15930
25008 49230 87232 17253
25008 49323 87233 17253
25015 49324 87263 17259