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 (
    14809, 13788, 16849, 15372, 14044, 14043, 
    14213, 13785, 13789, 12336, 17207, 
    13032, 13600, 12832, 16471, 13037, 
    15769, 15211, 14214, 13041
  )

Query time 0.01108

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": 96,
          "filtered": 100,
          "index_condition": "gp.group_id in (14809,13788,16849,15372,14044,14043,14213,13785,13789,12336,17207,13032,13600,12832,16471,13037,15769,15211,14214,13041)"
        }
      },
      {
        "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
19826 15648 68953 12336
19826 5986 68952 12336
20380 18599 71329 12832
20380 4116 71330 12832
20599 19271 72042 13032
20599 19270 72041 13032
20599 3533 72043 13032
20604 19282 72058 13037
20604 19281 72057 13037
20604 3528 72059 13037
20608 19290 72070 13041
20608 19289 72069 13041
20608 3524 72071 13041
21217 21759 74221 13600
21217 21757 74220 13600
21217 21756 74219 13600
21217 2150 74219 13600
21426 22536 74968 13785
21426 22535 74967 13785
21426 22534 74969 13785
21426 1839 74966 13785
21429 22546 74981 13788
21429 22545 74980 13788
21429 22544 74979 13788
21429 22543 74978 13788
21429 1836 74982 13788
21430 22550 74986 13789
21430 22549 74985 13789
21430 22548 74984 13789
21430 22547 74983 13789
21430 1835 74987 13789
21721 1328 75945 14043
21721 23401 75944 14043
21722 23402 75946 14044
21722 23403 75947 14044
21722 23404 75948 14044
21722 40683 75949 14044
21722 48705 86913 14044
21722 48706 86915 14044
21912 24111 76698 14213
21912 1059 76697 14213
21913 24114 76701 14214
21913 24113 76700 14214
21913 24112 76699 14214
21913 1058 76702 14214
22556 52 79197 14809
22556 26619 79196 14809
23148 29974 80251 15211
23148 29975 80252 15211
23148 29698 80250 15211
23249 31971 80613 15372
23250 31971 80617 15372
23249 31966 80612 15372
23250 31966 80617 15372
23249 31967 80612 15372
23250 31967 80618 15372
23249 31968 80612 15372
23250 31968 80619 15372
23249 31969 80612 15372
23250 31969 80620 15372
23249 31970 80612 15372
23250 31970 80621 15372
23249 31872 80616 15372
23250 31872 80618 15372
23249 31972 80613 15372
23250 31972 80618 15372
23249 31973 80613 15372
23250 31973 80619 15372
23249 31974 80613 15372
23250 31974 80620 15372
23249 31975 80613 15372
23250 31975 80621 15372
23249 31976 80614 15372
23250 31976 80617 15372
23249 31977 80614 15372
23250 31977 80618 15372
23249 31978 80614 15372
23250 31978 80619 15372
23249 31979 80614 15372
23250 31979 80620 15372
23249 31980 80614 15372
23250 31980 80621 15372
23249 31981 80615 15372
23250 31981 80617 15372
23249 31982 80615 15372
23250 31982 80618 15372
23249 31983 80615 15372
23250 31983 80619 15372
23249 31984 80615 15372
23250 31984 80620 15372
23249 31985 80615 15372
23250 31985 80621 15372
23249 31986 80616 15372
23250 31986 80617 15372
23249 31987 80616 15372
23250 31987 80619 15372
23249 31988 80616 15372
23250 31988 80620 15372
23249 31989 80616 15372
23250 31989 80621 15372
23648 1408 81996 15769
23649 1408 81998 15769
23648 35970 81996 15769
23649 35970 82000 15769
23648 35969 81996 15769
23649 35969 81999 15769
23648 35971 81997 15769
23649 35971 81998 15769
23648 35972 81997 15769
23649 35972 81999 15769
23648 35973 81997 15769
23649 35973 82000 15769
24214 41334 84373 16471
24214 41213 84371 16471
24214 41333 84372 16471
24624 45503 85938 16849
24624 45536 85947 16849
24624 45537 85939 16849
24624 45538 85940 16849
24624 45539 85941 16849
24624 45540 85942 16849
24624 45541 85943 16849
24624 45542 85944 16849
24624 45543 85945 16849
24624 45544 85946 16849
24952 48768 87006 17207
24952 48772 87007 17207
24952 48773 87008 17207
24952 48774 87009 17207
24952 48775 87010 17207