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 (
    16064, 14866, 16293, 15771, 16569, 14380, 
    16710, 16479, 15733, 16556, 15604, 
    14847, 13339, 16561, 16331
  )

Query time 0.01371

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": 47,
          "filtered": 100,
          "index_condition": "gp.group_id in (16064,14866,16293,15771,16569,14380,16710,16479,15733,16556,15604,14847,13339,16561,16331)"
        }
      },
      {
        "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
20946 20824 73163 13339
20946 20823 73162 13339
20946 20822 73161 13339
20946 20821 73160 13339
20946 20820 73159 13339
20946 20819 73158 13339
20946 20818 73157 13339
20946 2630 73164 13339
22097 764 77358 14380
22097 24704 77356 14380
22097 24705 77357 14380
22629 27077 79260 14847
22629 4933 79259 14847
22647 47254 79296 14866
22647 4896 79295 14866
23480 33698 81481 15604
23480 33769 81482 15604
23606 35654 81853 15733
23606 35749 81854 15733
23606 35750 81855 15733
23606 35751 81856 15733
23652 35912 82009 15771
23652 35985 82010 15771
23877 38101 83069 16064
23877 38241 83070 16064
23877 38242 83071 16064
23877 38243 83072 16064
23877 38244 83073 16064
23877 38245 83074 16064
23877 38246 83075 16064
24077 40379 83894 16293
24077 40387 83895 16293
24119 40632 84052 16331
24119 40680 84053 16331
24119 40681 84054 16331
24119 40682 84055 16331
24221 41383 84384 16479
24221 41393 84385 16479
24302 42172 84682 16556
24302 42221 84683 16556
24307 42179 84694 16561
24307 42228 84695 16561
24315 42190 84720 16569
24315 42246 84721 16569
24476 44278 85377 16710
24476 44312 85378 16710