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 (
    16946, 12909, 13039, 15743, 12907, 12536, 
    14673, 17140, 13758, 14810, 14647, 
    14262, 14260, 14258
  )

Query time 0.01443

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": 108,
          "filtered": 100,
          "index_condition": "gp.group_id in (16946,12909,13039,15743,12907,12536,14673,17140,13758,14810,14647,14262,14260,14258)"
        }
      },
      {
        "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
20040 16819 70085 12536
20040 16818 70086 12536
20040 5455 70084 12536
20457 18760 71563 12907
20457 18759 71564 12907
20457 3881 71562 12907
20459 18762 71567 12909
20459 3879 71568 12909
20606 19287 72065 13039
20606 19286 72064 13039
20606 19285 72063 13039
20606 3526 72066 13039
21398 22431 74843 13758
21398 1872 74844 13758
21957 973 76861 14258
21957 24228 76859 14258
21957 24229 76860 14258
21959 971 76867 14260
21959 24231 76864 14260
21959 24232 76865 14260
21959 24233 76866 14260
21961 969 76879 14262
21961 24238 76873 14262
21961 24239 76874 14262
21961 24240 76875 14262
21961 24241 76876 14262
21961 24242 76877 14262
21961 24243 76878 14262
22381 337 78468 14647
22381 25882 78465 14647
22381 25883 78466 14647
22381 25884 78467 14647
22411 26102 78612 14673
22411 26101 78611 14673
22411 26100 78610 14673
22411 26103 78613 14673
22411 26104 78617 14673
22411 26105 78615 14673
22411 26106 78616 14673
22411 297 78614 14673
22557 51 79199 14810
22557 26620 79198 14810
23618 35729 81888 15743
23619 35729 81892 15743
23618 35787 81888 15743
23619 35787 81893 15743
23618 35788 81888 15743
23619 35788 81894 15743
23618 35789 81888 15743
23619 35789 81895 15743
23618 35790 81888 15743
23619 35790 81896 15743
23618 35791 81888 15743
23619 35791 81897 15743
23618 35792 81889 15743
23619 35792 81892 15743
23618 35793 81889 15743
23619 35793 81893 15743
23618 35794 81889 15743
23619 35794 81894 15743
23618 35795 81889 15743
23619 35795 81895 15743
23618 35796 81889 15743
23619 35796 81896 15743
23618 35797 81889 15743
23619 35797 81897 15743
23618 35798 81890 15743
23619 35798 81892 15743
23618 35799 81890 15743
23619 35799 81893 15743
23618 35800 81890 15743
23619 35800 81894 15743
23618 35801 81890 15743
23619 35801 81895 15743
23618 35802 81890 15743
23619 35802 81896 15743
23618 35803 81890 15743
23619 35803 81897 15743
23618 35804 81891 15743
23619 35804 81892 15743
23618 35805 81891 15743
23619 35805 81893 15743
23618 35806 81891 15743
23619 35806 81894 15743
23618 35807 81891 15743
23619 35807 81895 15743
23618 35808 81891 15743
23619 35808 81896 15743
23618 35809 81891 15743
23619 35809 81897 15743
24717 49265 86218 16946
24717 49266 86219 16946
24717 49263 86220 16946
24717 49267 87235 16946
24889 48184 86828 17140
24890 48184 86837 17140
24889 48185 86828 17140
24890 48185 86838 17140
24889 48183 86827 17140
24890 48183 86839 17140
24889 48182 86827 17140
24890 48182 86838 17140
24889 48181 86836 17140
24890 48181 86839 17140
24889 48180 86836 17140
24890 48180 86838 17140
24889 48179 86836 17140
24890 48179 86837 17140
24889 48151 86827 17140
24890 48151 86837 17140
24889 48186 86828 17140
24890 48186 86839 17140
24889 48187 86829 17140
24890 48187 86837 17140
24889 48188 86829 17140
24890 48188 86838 17140
24889 48189 86829 17140
24890 48189 86839 17140
24889 48190 86830 17140
24890 48190 86837 17140
24889 48191 86830 17140
24890 48191 86838 17140
24889 48192 86830 17140
24890 48192 86839 17140
24889 48193 86831 17140
24890 48193 86837 17140
24889 48194 86831 17140
24890 48194 86838 17140
24889 48195 86831 17140
24890 48195 86839 17140
24889 48196 86832 17140
24890 48196 86837 17140
24889 48197 86832 17140
24890 48197 86838 17140
24889 48198 86832 17140
24890 48198 86839 17140
24889 48199 86833 17140
24890 48199 86837 17140
24889 48200 86833 17140
24890 48200 86838 17140
24889 48201 86833 17140
24890 48201 86839 17140
24889 48202 86834 17140
24890 48202 86837 17140
24889 48203 86834 17140
24890 48203 86838 17140
24889 48204 86834 17140
24890 48204 86839 17140
24889 48205 86835 17140
24890 48205 86837 17140
24889 48206 86835 17140
24890 48206 86838 17140
24889 48207 86835 17140
24890 48207 86839 17140