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 (
    16551, 13536, 16440, 15620, 12431, 14032, 
    15522, 13783, 16664, 12665, 12666, 
    15334, 13332
  )

Query time 0.00671

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": 56,
          "filtered": 100,
          "index_condition": "gp.group_id in (16551,13536,16440,15620,12431,14032,15522,13783,16664,12665,12666,15334,13332)"
        }
      },
      {
        "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
19929 16385 69639 12431
19929 16384 69638 12431
19929 16383 69637 12431
19929 5827 69640 12431
20207 18124 70709 12665
20207 4801 70710 12665
20208 18126 70712 12666
20208 18125 70711 12666
20208 4799 70713 12666
20939 20799 73131 13332
20939 20798 73130 13332
20939 20797 73129 13332
20939 2640 73132 13332
21148 21494 73962 13536
21148 21493 73961 13536
21148 21492 73960 13536
21148 21491 73959 13536
21148 2301 73963 13536
21424 22529 74959 13783
21424 22528 74958 13783
21424 22527 74957 13783
21424 1841 74960 13783
21710 1357 75911 14032
21710 23375 75907 14032
21710 23376 75908 14032
21710 23377 75909 14032
21710 23378 75910 14032
23218 31741 80523 15334
23218 31764 80524 15334
23218 31765 80525 15334
23218 31766 80526 15334
23218 31767 80527 15334
23218 31768 80528 15334
23218 31769 80529 15334
23218 31770 80530 15334
23218 31771 80531 15334
23391 32676 81138 15522
23391 33081 81139 15522
23391 33082 81140 15522
23391 33083 81141 15522
23391 33084 81142 15522
23391 33085 81143 15522
23491 33809 81512 15620
23491 33810 81513 15620
23491 33811 81514 15620
23491 33812 81515 15620
23491 33813 81516 15620
23491 33814 81517 15620
24191 37902 84291 16440
24191 42348 84766 16440
24191 41138 84292 16440
24191 41139 84293 16440
24297 42209 84666 16551
24297 42208 84665 16551
24297 42207 84664 16551
24297 42161 84663 16551
24438 43651 85235 16664
24438 43806 85236 16664
24438 43807 85237 16664