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 (
    16986, 16973, 16988, 16930, 13748, 13954, 
    12788, 15673, 12785, 12784, 12791, 
    12792, 14216, 12783
  )

Query time 0.00717

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": 70,
          "filtered": 100,
          "index_condition": "gp.group_id in (16986,16973,16988,16930,13748,13954,12788,15673,12785,12784,12791,12792,14216,12783)"
        }
      },
      {
        "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
20326 18400 71100 12783
20326 18399 71099 12783
20326 18398 71098 12783
20326 18397 71097 12783
20326 18396 71096 12783
20326 18395 71095 12783
20326 18394 71094 12783
20326 4271 71101 12783
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
20331 18435 71140 12788
20331 18434 71139 12788
20331 18433 71138 12788
20331 18432 71137 12788
20331 18431 71136 12788
20331 18430 71135 12788
20331 18429 71134 12788
20331 4266 71141 12788
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
20335 18463 71172 12792
20335 18462 71171 12792
20335 18461 71170 12792
20335 18460 71169 12792
20335 18459 71168 12792
20335 18458 71167 12792
20335 18457 71166 12792
20335 4262 71173 12792
21388 22405 74807 13748
21388 1892 74808 13748
21626 1481 75637 13954
21626 23162 75635 13954
21626 23163 75636 13954
21915 24120 76709 14216
21915 24119 76708 14216
21915 24118 76707 14216
21915 1056 76710 14216
23541 35195 81692 15673
23541 35258 81693 15673
23541 35259 81694 15673
24703 46748 86164 16930
24703 49306 86163 16930
24703 49305 87193 16930
24703 49307 86162 16930
24729 46993 86266 16973
24729 46624 86265 16973
24744 47014 86297 16986
24744 47106 86298 16986
24744 47107 86299 16986
24744 47016 86297 16988
24744 47110 86298 16988
24744 47111 86299 16988