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 (
    14227, 15822, 12735, 14255, 14256, 12558, 
    15832, 14837, 12252, 14826, 12546, 
    15859, 16102, 14835, 15671, 14252, 
    12734, 15858
  )

Query time 0.02951

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": 76,
          "filtered": 100,
          "index_condition": "gp.group_id in (14227,15822,12735,14255,14256,12558,15832,14837,12252,14826,12546,15859,16102,14835,15671,14252,12734,15858)"
        }
      },
      {
        "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
19730 15235 68616 12252
19730 15234 68617 12252
19730 6350 68615 12252
20050 16842 70118 12546
20050 5420 70119 12546
20063 16859 70146 12558
20063 5381 70147 12558
20276 18287 70941 12734
20276 18286 70940 12734
20276 4384 70942 12734
20277 18289 70944 12735
20277 18288 70943 12735
20277 4383 70945 12735
21926 24143 76743 14227
21926 1040 76744 14227
21951 982 76845 14252
21951 24219 76844 14252
21954 979 76853 14255
21954 24223 76851 14255
21954 24224 76852 14255
21955 978 76855 14256
21955 24225 76854 14256
22566 26662 79215 14826
22566 26663 79216 14826
22566 2248 79214 14826
22574 26842 79237 14835
22574 26843 79238 14835
22574 2256 79236 14835
22577 2259 79245 14837
22577 26682 79246 14837
22577 26683 79247 14837
23539 35193 81687 15671
23539 35255 81688 15671
23703 36469 82231 15822
23703 36549 82240 15822
23703 36550 82241 15822
23703 36551 82242 15822
23703 36552 82243 15822
23703 36553 82244 15822
23703 36554 82245 15822
23703 36555 82246 15822
23703 36556 82247 15822
23703 36557 82248 15822
23703 36558 82249 15822
23703 36559 82250 15822
23703 36560 82232 15822
23703 36561 82233 15822
23703 36562 82234 15822
23703 36563 82235 15822
23703 36564 82236 15822
23703 36565 82237 15822
23703 36566 82238 15822
23703 36567 82239 15822
23709 36466 82262 15832
23709 36578 82271 15832
23709 36579 82272 15832
23709 36580 82273 15832
23709 36581 82274 15832
23709 36582 82275 15832
23709 36583 82276 15832
23709 36584 82277 15832
23709 36585 82278 15832
23709 36586 82279 15832
23709 36587 82280 15832
23709 36588 82281 15832
23709 36589 82263 15832
23709 36590 82264 15832
23709 36591 82265 15832
23709 36592 82266 15832
23709 36593 82267 15832
23709 36594 82268 15832
23709 36595 82269 15832
23709 36596 82270 15832
23734 36302 82386 15858
23734 36697 82387 15858
23734 36698 82388 15858
23735 36303 82389 15859
23735 49260 82393 15859
23735 49259 82392 15859
23735 49258 82391 15859
23735 49257 82390 15859
23926 38151 83212 16102
23926 38331 83213 16102