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 (
    13764, 13956, 14827, 13540, 14859, 14861, 
    14856, 15644, 12777, 12772, 14866, 
    17248, 14847, 16674, 14851, 14844
  )

Query time 0.01289

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": 59,
          "filtered": 100,
          "index_condition": "gp.group_id in (13764,13956,14827,13540,14859,14861,14856,15644,12777,12772,14866,17248,14847,16674,14851,14844)"
        }
      },
      {
        "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
20315 18376 71065 12772
20315 4308 71066 12772
20320 18381 71075 12777
20320 4303 71076 12777
21152 21508 73980 13540
21152 21507 73979 13540
21152 21506 73978 13540
21152 2296 73981 13540
21405 22465 74876 13764
21405 22464 74875 13764
21405 22463 74874 13764
21405 22462 74873 13764
21405 1866 74877 13764
21628 1478 75644 13956
21628 23166 75641 13956
21628 23167 75642 13956
21628 23168 75643 13956
22568 2249 79217 14827
22568 26664 79218 14827
22568 26665 79219 14827
22627 27076 79256 14844
22627 4936 79255 14844
22629 27077 79260 14847
22629 4933 79259 14847
22632 27078 79266 14851
22632 4929 79265 14851
22637 27068 79276 14856
22637 4920 79275 14856
22640 4914 79281 14859
22642 47253 79285 14861
22642 27079 79286 14861
22647 47254 79296 14866
22647 4896 79295 14866
23512 33721 81601 15644
23512 34036 81610 15644
23512 34037 81611 15644
23512 34038 81612 15644
23512 34039 81613 15644
23512 34040 81614 15644
23512 34041 81615 15644
23512 34042 81616 15644
23512 34043 81617 15644
23512 34044 81602 15644
23512 34045 81603 15644
23512 34046 81604 15644
23512 34047 81605 15644
23512 34048 81606 15644
23512 34049 81607 15644
23512 34050 81608 15644
23512 34051 81609 15644
24450 43827 85275 16674
24450 43873 85276 16674
24450 43874 85277 16674
24450 43875 85278 16674
24450 43876 85279 16674
23110 49203 87216 17248
23110 49202 87215 17248
23110 49201 87214 17248
23110 49200 80109 17248
23110 49199 80108 17248