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 (
    15782, 15779, 15535, 15537, 15536, 15774, 
    15773, 15522, 15778, 15523, 15525, 
    15532, 15530, 15771, 15776, 15777, 
    15534, 15533
  )

Query time 0.00298

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": 52,
          "filtered": 100,
          "index_condition": "gp.group_id in (15782,15779,15535,15537,15536,15774,15773,15522,15778,15523,15525,15532,15530,15771,15776,15777,15534,15533)"
        }
      },
      {
        "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
23391 32676 81138 15522
23391 33081 81139 15522
23391 33082 81140 15522
23391 33083 81141 15522
23391 33084 81142 15522
23391 33085 81143 15522
23392 32679 81144 15523
23392 33086 81145 15523
23392 33087 81146 15523
23394 32683 81150 15525
23394 33090 81151 15525
23398 32691 81160 15530
23398 33098 81161 15530
23400 32696 81164 15532
23400 33100 81165 15532
23400 33101 81166 15532
23401 32697 81167 15533
23401 33102 81168 15533
23401 33103 81169 15533
23402 32700 81170 15534
23402 33104 81171 15534
23403 32703 81172 15535
23403 33105 81173 15535
23403 33106 81174 15535
23403 33107 81175 15535
23403 33108 81176 15535
23404 32704 81177 15536
23404 33109 81178 15536
23404 33110 81179 15536
23404 33111 81180 15536
23405 32706 81181 15537
23405 33112 81182 15537
23652 35912 82009 15771
23652 35985 82010 15771
23653 35916 82011 15773
23653 35988 82012 15773
23653 35989 82013 15773
23654 35917 82014 15774
23654 35990 82015 15774
23654 35991 82016 15774
23656 35919 82020 15776
23656 35994 82021 15776
23656 35995 82022 15776
23657 35920 82023 15777
23657 35996 82024 15777
23657 35997 82025 15777
23658 35921 82026 15778
23658 35998 82027 15778
23658 35999 82028 15778
23659 35925 82029 15779
23659 36000 82030 15779
23659 36001 82031 15779
23660 35929 82032 15782
23660 36012 82033 15782
23660 36013 82034 15782
23660 36014 82035 15782