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 (874, 936, 939)

Query time 0.00336

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "139.09"
    },
    "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": 44,
          "rows_produced_per_join": 44,
          "filtered": "100.00",
          "index_condition": "(`test2_gaseus`.`gp`.`group_id` in (874,936,939))",
          "cost_info": {
            "read_cost": "16.16",
            "eval_cost": "4.40",
            "prefix_cost": "20.56",
            "data_read_per_join": "704"
          },
          "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": 167,
          "filtered": "54.46",
          "using_index": true,
          "cost_info": {
            "read_cost": "29.01",
            "eval_cost": "16.78",
            "prefix_cost": "80.37",
            "data_read_per_join": "129K"
          },
          "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": 167,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "41.94",
            "eval_cost": "16.78",
            "prefix_cost": "139.09",
            "data_read_per_join": "17K"
          },
          "used_columns": [
            "feature_id",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
553 12725 1935 874
624 12725 1705 874
625 12725 2415 874
627 12725 1836 874
628 12725 1712 874
553 12726 1935 874
624 12726 1705 874
625 12726 2131 874
627 12726 1836 874
628 12726 1712 874
553 12727 1935 874
624 12727 1705 874
625 12727 2132 874
627 12727 1836 874
628 12727 1712 874
553 12728 1935 874
624 12728 1705 874
625 12728 2143 874
627 12728 1836 874
628 12728 1712 874
553 12729 1935 874
624 12729 1803 874
625 12729 2413 874
627 12729 1836 874
628 12729 1712 874
553 12730 1935 874
624 12730 1803 874
625 12730 2415 874
627 12730 1836 874
628 12730 1712 874
553 12731 1935 874
624 12731 1803 874
625 12731 2131 874
627 12731 1836 874
628 12731 1712 874
553 12732 1935 874
624 12732 1803 874
625 12732 2132 874
627 12732 1836 874
628 12732 1712 874
553 12733 1935 874
624 12733 1803 874
625 12733 2143 874
627 12733 1836 874
628 12733 1712 874
553 12734 1935 874
624 12734 1705 874
625 12734 2413 874
627 12734 1954 874
628 12734 1712 874
553 12735 1935 874
624 12735 1705 874
625 12735 2415 874
627 12735 1954 874
628 12735 1712 874
553 12736 1935 874
624 12736 1705 874
625 12736 2131 874
627 12736 1954 874
628 12736 1712 874
553 12737 1935 874
624 12737 1705 874
625 12737 2132 874
627 12737 1954 874
628 12737 1712 874
553 12738 1935 874
624 12738 1705 874
625 12738 2143 874
627 12738 1954 874
628 12738 1712 874
553 12739 1935 874
624 12739 1803 874
625 12739 2413 874
627 12739 1954 874
628 12739 1712 874
553 12740 1935 874
624 12740 1803 874
625 12740 2415 874
627 12740 1954 874
628 12740 1712 874
553 12741 1935 874
624 12741 1803 874
625 12741 2131 874
627 12741 1954 874
628 12741 1712 874
553 12742 1935 874
624 12742 1803 874
625 12742 2132 874
627 12742 1954 874
628 12742 1712 874
553 12743 1935 874
624 12743 1803 874
625 12743 2143 874
627 12743 1954 874
628 12743 1712 874
553 12724 1935 874
624 12724 1705 874
625 12724 2413 874
627 12724 1836 874
628 12724 1712 874
553 12723 1935 874
624 12723 1803 874
625 12723 2143 874
627 12723 2290 874
628 12723 1712 874
553 12722 1935 874
624 12722 1803 874
625 12722 2132 874
627 12722 2290 874
628 12722 1712 874
553 12721 1935 874
624 12721 1803 874
625 12721 2131 874
627 12721 2290 874
628 12721 1712 874
553 12720 1935 874
624 12720 1803 874
625 12720 2415 874
627 12720 2290 874
628 12720 1712 874
553 12719 1935 874
624 12719 1803 874
625 12719 2413 874
627 12719 2290 874
628 12719 1712 874
553 12718 1935 874
624 12718 1705 874
625 12718 2143 874
627 12718 2290 874
628 12718 1712 874
553 12717 1935 874
624 12717 1705 874
625 12717 2132 874
627 12717 2290 874
628 12717 1712 874
553 12716 1935 874
624 12716 1705 874
625 12716 2131 874
627 12716 2290 874
628 12716 1712 874
553 12715 1935 874
624 12715 1705 874
625 12715 2415 874
627 12715 2290 874
628 12715 1712 874
553 12714 1935 874
624 12714 1705 874
625 12714 2413 874
627 12714 2290 874
628 12714 1712 874
553 13184 1973 936
595 13184 1905 936
622 13184 2497 936
623 13184 2501 936
624 13184 1803 936
625 13184 2147 936
626 13184 1723 936
627 13184 1659 936
628 13184 1660 936
636 13184 2348 936
637 13184 2345 936
646 13184 2370 936
647 13184 2374 936
553 13188 1973 936
595 13188 1900 936
622 13188 2497 936
623 13188 2501 936
624 13188 1803 936
625 13188 2147 936
626 13188 1723 936
627 13188 1659 936
628 13188 1660 936
636 13188 2348 936
637 13188 2345 936
646 13188 2370 936
647 13188 2374 936
553 13189 1973 936
595 13189 1899 936
622 13189 2497 936
623 13189 2501 936
624 13189 1803 936
625 13189 2147 936
626 13189 1723 936
627 13189 1659 936
628 13189 1660 936
636 13189 2348 936
637 13189 2345 936
646 13189 2370 936
647 13189 2374 936
553 13185 1973 936
595 13185 1789 936
622 13185 2497 936
623 13185 2501 936
624 13185 1803 936
625 13185 2147 936
626 13185 1723 936
627 13185 1659 936
628 13185 1660 936
636 13185 2348 936
637 13185 2345 936
646 13185 2370 936
647 13185 2374 936
553 13186 1973 936
595 13186 2499 936
622 13186 2497 936
623 13186 2501 936
624 13186 1803 936
625 13186 2147 936
626 13186 1723 936
627 13186 1659 936
628 13186 1660 936
636 13186 2348 936
637 13186 2345 936
646 13186 2370 936
647 13186 2374 936
553 13187 1973 936
595 13187 1787 936
622 13187 2497 936
623 13187 2501 936
624 13187 1803 936
625 13187 2147 936
626 13187 1723 936
627 13187 1659 936
628 13187 1660 936
636 13187 2348 936
637 13187 2345 936
646 13187 2370 936
647 13187 2374 936
553 13183 1973 936
595 13183 1904 936
622 13183 2497 936
623 13183 2501 936
624 13183 1803 936
625 13183 2147 936
626 13183 1723 936
627 13183 1659 936
628 13183 1660 936
636 13183 2348 936
637 13183 2345 936
646 13183 2370 936
647 13183 2374 936
553 13205 1973 939
595 13205 1905 939
622 13205 2497 939
623 13205 2501 939
624 13205 1803 939
625 13205 2123 939
626 13205 1879 939
627 13205 1659 939
628 13205 1660 939
636 13205 2348 939
637 13205 2345 939
646 13205 2369 939
647 13205 2373 939
553 13206 1973 939
595 13206 1789 939
622 13206 2497 939
623 13206 2501 939
624 13206 1803 939
625 13206 2123 939
626 13206 1879 939
627 13206 1659 939
628 13206 1660 939
636 13206 2348 939
637 13206 2345 939
646 13206 2369 939
647 13206 2373 939
553 13207 1973 939
595 13207 2499 939
622 13207 2497 939
623 13207 2501 939
624 13207 1803 939
625 13207 2123 939
626 13207 1879 939
627 13207 1659 939
628 13207 1660 939
636 13207 2348 939
637 13207 2345 939
646 13207 2369 939
647 13207 2373 939
553 13208 1973 939
595 13208 1787 939
622 13208 2497 939
623 13208 2501 939
624 13208 1803 939
625 13208 2123 939
626 13208 1879 939
627 13208 1659 939
628 13208 1660 939
636 13208 2348 939
637 13208 2345 939
646 13208 2369 939
647 13208 2373 939
553 13209 1973 939
595 13209 1900 939
622 13209 2497 939
623 13209 2501 939
624 13209 1803 939
625 13209 2123 939
626 13209 1879 939
627 13209 1659 939
628 13209 1660 939
636 13209 2348 939
637 13209 2345 939
646 13209 2369 939
647 13209 2373 939
553 13210 1973 939
595 13210 1899 939
622 13210 2497 939
623 13210 2501 939
624 13210 1803 939
625 13210 2123 939
626 13210 1879 939
627 13210 1659 939
628 13210 1660 939
636 13210 2348 939
637 13210 2345 939
646 13210 2369 939
647 13210 2373 939
553 13204 1973 939
595 13204 1904 939
622 13204 2497 939
623 13204 2501 939
624 13204 1803 939
625 13204 2123 939
626 13204 1879 939
627 13204 1659 939
628 13204 1660 939
636 13204 2348 939
637 13204 2345 939
646 13204 2369 939
647 13204 2373 939