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 (
    17248, 14847, 14851, 16674, 14844, 12993, 
    16286, 14862, 17208, 14866, 16895, 
    16925, 14865, 16896
  )

Query time 0.00411

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 (17248,14847,14851,16674,14844,12993,16286,14862,17208,14866,16895,16925,14865,16896)"
        }
      },
      {
        "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
20557 19166 71904 12993
20557 3626 71905 12993
22627 27076 79256 14844
22627 4936 79255 14844
22629 27077 79260 14847
22629 4933 79259 14847
22632 27078 79266 14851
22632 4929 79265 14851
22643 47255 79288 14862
22643 4908 79287 14862
22646 4899 79293 14865
22647 47254 79296 14866
22647 4896 79295 14866
24066 40312 83869 16286
24066 40348 83870 16286
24450 43827 85275 16674
24450 43873 85276 16674
24450 43874 85277 16674
24450 43875 85278 16674
24450 43876 85279 16674
24658 46201 86047 16895
24657 46201 86044 16895
24658 46200 86046 16895
24657 46200 86044 16895
24658 46198 86047 16895
24657 46198 86043 16895
24658 46199 86045 16895
24657 46199 86044 16895
24658 46197 86046 16895
24657 46197 86043 16895
24658 46153 86045 16895
24657 46153 86043 16895
24659 46203 86050 16896
24659 46202 86049 16896
24659 46154 86048 16896
24696 46619 86144 16925
24696 46590 86143 16925
24696 46620 86145 16925
24953 48776 87011 17208
24953 48777 87012 17208
24953 48778 87013 17208
23110 49203 87216 17248
23110 49202 87215 17248
23110 49201 87214 17248
23110 49200 80109 17248
23110 49199 80108 17248