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 = 'en' 
  AND gp.group_id IN (853, 904, 871)

Query time 0.00352

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "164.24"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "gp",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "rows_examined_per_scan": 52,
          "rows_produced_per_join": 52,
          "filtered": "100.00",
          "index_condition": "(`test2_gaseus`.`gp`.`group_id` in (853,904,871))",
          "cost_info": {
            "read_cost": "18.96",
            "eval_cost": "5.20",
            "prefix_cost": "24.16",
            "data_read_per_join": "832"
          },
          "used_columns": [
            "product_id",
            "group_id"
          ]
        }
      },
      {
        "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",
          "used_key_parts": [
            "product_id"
          ],
          "key_length": "3",
          "ref": [
            "test2_gaseus.gp.product_id"
          ],
          "rows_examined_per_scan": 7,
          "rows_produced_per_join": 198,
          "filtered": "54.46",
          "using_index": true,
          "cost_info": {
            "read_cost": "34.29",
            "eval_cost": "19.83",
            "prefix_cost": "94.85",
            "data_read_per_join": "153K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ],
          "attached_condition": "(`test2_gaseus`.`pfv`.`lang_code` = 'en')"
        }
      },
      {
        "table": {
          "table_name": "gpf",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "feature_id",
            "group_id"
          ],
          "key_length": "6",
          "ref": [
            "test2_gaseus.pfv.feature_id",
            "test2_gaseus.gp.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 198,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "49.56",
            "eval_cost": "19.83",
            "prefix_cost": "164.24",
            "data_read_per_join": "20K"
          },
          "used_columns": [
            "feature_id",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
553 12363 1935 853
624 12363 2403 853
625 12363 2388 853
627 12363 1954 853
628 12363 1660 853
553 12349 1935 853
624 12349 2403 853
625 12349 2133 853
627 12349 2378 853
628 12349 1660 853
553 12351 1935 853
624 12351 2403 853
625 12351 2135 853
627 12351 2378 853
628 12351 1660 853
553 12350 1935 853
624 12350 2403 853
625 12350 2134 853
627 12350 2378 853
628 12350 1660 853
553 12353 1935 853
624 12353 2403 853
625 12353 2388 853
627 12353 2378 853
628 12353 1660 853
553 12352 1935 853
624 12352 2403 853
625 12352 2136 853
627 12352 2378 853
628 12352 1660 853
553 12355 1935 853
624 12355 2403 853
625 12355 2134 853
627 12355 1836 853
628 12355 1660 853
553 12354 1935 853
624 12354 2403 853
625 12354 2133 853
627 12354 1836 853
628 12354 1660 853
553 12362 1935 853
624 12362 2403 853
625 12362 2136 853
627 12362 1954 853
628 12362 1660 853
553 12360 1935 853
624 12360 2403 853
625 12360 2134 853
627 12360 1954 853
628 12360 1660 853
553 12361 1935 853
624 12361 2403 853
625 12361 2135 853
627 12361 1954 853
628 12361 1660 853
553 12358 1935 853
624 12358 2403 853
625 12358 2388 853
627 12358 1836 853
628 12358 1660 853
553 12359 1935 853
624 12359 2403 853
625 12359 2133 853
627 12359 1954 853
628 12359 1660 853
553 12356 1935 853
624 12356 2403 853
625 12356 2135 853
627 12356 1836 853
628 12356 1660 853
553 12357 1935 853
624 12357 2403 853
625 12357 2136 853
627 12357 1836 853
628 12357 1660 853
553 12653 1935 871
624 12653 1803 871
625 12653 2143 871
627 12653 1954 871
628 12653 1660 871
553 12652 1935 871
624 12652 1803 871
625 12652 2132 871
627 12652 1954 871
628 12652 1660 871
553 12651 1935 871
624 12651 1803 871
625 12651 2131 871
627 12651 1954 871
628 12651 1660 871
553 12650 1935 871
624 12650 1803 871
625 12650 2415 871
627 12650 1954 871
628 12650 1660 871
553 12649 1935 871
624 12649 1803 871
625 12649 2413 871
627 12649 1954 871
628 12649 1660 871
553 12648 1935 871
624 12648 1705 871
625 12648 2143 871
627 12648 1954 871
628 12648 1660 871
553 12647 1935 871
624 12647 1705 871
625 12647 2132 871
627 12647 1954 871
628 12647 1660 871
553 12646 1935 871
624 12646 1705 871
625 12646 2131 871
627 12646 1954 871
628 12646 1660 871
553 12645 1935 871
624 12645 1705 871
625 12645 2415 871
627 12645 1954 871
628 12645 1660 871
553 12644 1935 871
624 12644 1705 871
625 12644 2413 871
627 12644 1954 871
628 12644 1660 871
553 12643 1935 871
624 12643 1803 871
625 12643 2143 871
627 12643 1836 871
628 12643 1660 871
553 12642 1935 871
624 12642 1803 871
625 12642 2132 871
627 12642 1836 871
628 12642 1660 871
553 12641 1935 871
624 12641 1803 871
625 12641 2131 871
627 12641 1836 871
628 12641 1660 871
553 12640 1935 871
624 12640 1803 871
625 12640 2415 871
627 12640 1836 871
628 12640 1660 871
553 12639 1935 871
624 12639 1803 871
625 12639 2413 871
627 12639 1836 871
628 12639 1660 871
553 12624 1935 871
624 12624 1705 871
625 12624 2413 871
627 12624 2290 871
628 12624 1660 871
553 12625 1935 871
624 12625 1705 871
625 12625 2415 871
627 12625 2290 871
628 12625 1660 871
553 12626 1935 871
624 12626 1705 871
625 12626 2131 871
627 12626 2290 871
628 12626 1660 871
553 12627 1935 871
624 12627 1705 871
625 12627 2132 871
627 12627 2290 871
628 12627 1660 871
553 12628 1935 871
624 12628 1705 871
625 12628 2143 871
627 12628 2290 871
628 12628 1660 871
553 12629 1935 871
624 12629 1803 871
625 12629 2413 871
627 12629 2290 871
628 12629 1660 871
553 12630 1935 871
624 12630 1803 871
625 12630 2415 871
627 12630 2290 871
628 12630 1660 871
553 12631 1935 871
624 12631 1803 871
625 12631 2131 871
627 12631 2290 871
628 12631 1660 871
553 12632 1935 871
624 12632 1803 871
625 12632 2132 871
627 12632 2290 871
628 12632 1660 871
553 12633 1935 871
624 12633 1803 871
625 12633 2143 871
627 12633 2290 871
628 12633 1660 871
553 12634 1935 871
624 12634 1705 871
625 12634 2413 871
627 12634 1836 871
628 12634 1660 871
553 12635 1935 871
624 12635 1705 871
625 12635 2415 871
627 12635 1836 871
628 12635 1660 871
553 12636 1935 871
624 12636 1705 871
625 12636 2131 871
627 12636 1836 871
628 12636 1660 871
553 12637 1935 871
624 12637 1705 871
625 12637 2132 871
627 12637 1836 871
628 12637 1660 871
553 12638 1935 871
624 12638 1705 871
625 12638 2143 871
627 12638 1836 871
628 12638 1660 871
553 13078 1973 904
595 13078 1904 904
622 13078 2497 904
623 13078 2501 904
624 13078 1803 904
625 13078 2124 904
626 13078 1723 904
627 13078 1659 904
628 13078 1660 904
636 13078 2348 904
637 13078 2345 904
646 13078 2369 904
647 13078 2373 904
553 13079 1973 904
595 13079 1905 904
622 13079 2497 904
623 13079 2501 904
624 13079 1803 904
625 13079 2124 904
626 13079 1723 904
627 13079 1659 904
628 13079 1660 904
636 13079 2348 904
637 13079 2345 904
646 13079 2369 904
647 13079 2373 904
553 13080 1973 904
595 13080 1789 904
622 13080 2497 904
623 13080 2501 904
624 13080 1803 904
625 13080 2124 904
626 13080 1723 904
627 13080 1659 904
628 13080 1660 904
636 13080 2348 904
637 13080 2345 904
646 13080 2369 904
647 13080 2373 904
553 13081 1973 904
595 13081 2499 904
622 13081 2497 904
623 13081 2501 904
624 13081 1803 904
625 13081 2124 904
626 13081 1723 904
627 13081 1659 904
628 13081 1660 904
636 13081 2348 904
637 13081 2345 904
646 13081 2369 904
647 13081 2373 904
553 13082 1973 904
595 13082 1787 904
622 13082 2497 904
623 13082 2501 904
624 13082 1803 904
625 13082 2124 904
626 13082 1723 904
627 13082 1659 904
628 13082 1660 904
636 13082 2348 904
637 13082 2345 904
646 13082 2369 904
647 13082 2373 904
553 13083 1973 904
595 13083 1900 904
622 13083 2497 904
623 13083 2501 904
624 13083 1803 904
625 13083 2124 904
626 13083 1723 904
627 13083 1659 904
628 13083 1660 904
636 13083 2348 904
637 13083 2345 904
646 13083 2369 904
647 13083 2373 904
553 13084 1973 904
595 13084 1899 904
622 13084 2497 904
623 13084 2501 904
624 13084 1803 904
625 13084 2124 904
626 13084 1723 904
627 13084 1659 904
628 13084 1660 904
636 13084 2348 904
637 13084 2345 904
646 13084 2369 904
647 13084 2373 904