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 (
    14525, 13237, 14675, 12785, 12784, 12176, 
    12970, 14226, 14635, 16953, 15746, 
    13450, 12891, 14836, 13656, 12791, 
    16931, 17031, 12902
  )

Query time 0.01239

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": 102,
          "filtered": 100,
          "index_condition": "gp.group_id in (14525,13237,14675,12785,12784,12176,12970,14226,14635,16953,15746,13450,12891,14836,13656,12791,16931,17031,12902)"
        }
      },
      {
        "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
19648 14920 68336 12176
19648 14919 68335 12176
19648 14918 68334 12176
19648 14917 68333 12176
19648 14916 68332 12176
19648 6557 68337 12176
20327 18407 71108 12784
20327 18406 71107 12784
20327 18405 71106 12784
20327 18404 71105 12784
20327 18403 71104 12784
20327 18402 71103 12784
20327 18401 71102 12784
20327 4270 71109 12784
20328 18414 71116 12785
20328 18413 71115 12785
20328 18412 71114 12785
20328 18411 71113 12785
20328 18410 71112 12785
20328 18409 71111 12785
20328 18408 71110 12785
20328 4269 71117 12785
20334 18456 71164 12791
20334 18455 71163 12791
20334 18454 71162 12791
20334 18453 71161 12791
20334 18452 71160 12791
20334 18451 71159 12791
20334 18450 71158 12791
20334 4263 71165 12791
20439 18731 71520 12891
20439 18730 71519 12891
20439 18729 71518 12891
20439 3975 71521 12891
20450 18748 71549 12902
20450 3889 71548 12902
20527 18931 71774 12970
20527 18930 71773 12970
20527 3669 71773 12970
20836 20553 72794 13237
20836 3004 72795 13237
21058 21085 73529 13450
21058 2457 73528 13450
21287 22062 74486 13656
21287 22061 74487 13656
21287 2019 74485 13656
21925 24142 76741 14226
21925 24141 76740 14226
21925 1041 76742 14226
22245 25183 77946 14525
22245 25182 77945 14525
22245 532 77947 14525
22245 25180 77943 14525
22245 25181 77944 14525
22368 25850 78426 14635
22368 352 78427 14635
22413 294 78622 14675
22413 26109 78621 14675
22576 26681 79244 14836
22576 2257 79242 14836
22576 26680 79243 14836
23624 35732 81917 15746
23625 35732 81922 15746
23624 35855 81917 15746
23625 35855 81923 15746
23624 35856 81917 15746
23625 35856 81924 15746
23624 35857 81917 15746
23625 35857 81925 15746
23624 35858 81917 15746
23625 35858 81926 15746
23624 35859 81918 15746
23625 35859 81922 15746
23624 35860 81918 15746
23625 35860 81923 15746
23624 35861 81918 15746
23625 35861 81924 15746
23624 35862 81918 15746
23625 35862 81925 15746
23624 35863 81918 15746
23625 35863 81926 15746
23624 35864 81919 15746
23625 35864 81922 15746
23624 35865 81919 15746
23625 35865 81923 15746
23624 35866 81919 15746
23625 35866 81924 15746
23624 35867 81919 15746
23625 35867 81925 15746
23624 35868 81919 15746
23625 35868 81926 15746
23624 35869 81920 15746
23625 35869 81922 15746
23624 35870 81920 15746
23625 35870 81923 15746
23624 35871 81920 15746
23625 35871 81924 15746
23624 35872 81920 15746
23625 35872 81925 15746
23624 35873 81920 15746
23625 35873 81926 15746
23624 35874 81921 15746
23625 35874 81922 15746
23624 35875 81921 15746
23625 35875 81923 15746
23624 35876 81921 15746
23625 35876 81924 15746
23624 35877 81921 15746
23625 35877 81925 15746
23624 35878 81921 15746
23625 35878 81926 15746
24704 46692 86165 16931
24704 46749 86166 16931
24704 46750 86167 16931
24723 46840 86236 16953
24723 46839 86235 16953
24723 46838 86234 16953
24723 46715 86233 16953
24781 47338 86449 17031
24781 47337 86448 17031
24781 47336 86447 17031
24781 47335 86446 17031
24781 47334 86445 17031
24781 47333 86444 17031
24781 47332 86453 17031
24781 47331 86452 17031
24781 47278 86443 17031
24781 47340 86451 17031
24781 47339 86450 17031