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 (931, 945, 940)

Query time 0.00260

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "63.64"
    },
    "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": 20,
          "rows_produced_per_join": 20,
          "filtered": "100.00",
          "index_condition": "(`test2_gaseus`.`gp`.`group_id` in (931,945,940))",
          "cost_info": {
            "read_cost": "7.76",
            "eval_cost": "2.00",
            "prefix_cost": "9.76",
            "data_read_per_join": "320"
          },
          "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": 76,
          "filtered": "54.46",
          "using_index": true,
          "cost_info": {
            "read_cost": "13.19",
            "eval_cost": "7.63",
            "prefix_cost": "36.95",
            "data_read_per_join": "58K"
          },
          "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": 76,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "19.06",
            "eval_cost": "7.63",
            "prefix_cost": "63.64",
            "data_read_per_join": "7K"
          },
          "used_columns": [
            "feature_id",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
553 13267 1912 931
595 13267 1904 931
622 13267 2497 931
623 13267 2524 931
624 13267 1803 931
625 13267 2122 931
626 13267 2043 931
627 13267 2378 931
628 13267 1660 931
636 13267 2348 931
637 13267 2345 931
646 13267 2370 931
647 13267 2374 931
553 13268 1912 931
595 13268 1905 931
622 13268 2497 931
623 13268 2524 931
624 13268 1803 931
625 13268 2122 931
626 13268 2043 931
627 13268 2378 931
628 13268 1660 931
636 13268 2348 931
637 13268 2345 931
646 13268 2370 931
647 13268 2374 931
553 13269 1912 931
595 13269 1789 931
622 13269 2497 931
623 13269 2524 931
624 13269 1803 931
625 13269 2122 931
626 13269 2043 931
627 13269 2378 931
628 13269 1660 931
636 13269 2348 931
637 13269 2345 931
646 13269 2370 931
647 13269 2374 931
553 13270 1912 931
595 13270 2499 931
622 13270 2497 931
623 13270 2524 931
624 13270 1803 931
625 13270 2122 931
626 13270 2043 931
627 13270 2378 931
628 13270 1660 931
636 13270 2348 931
637 13270 2345 931
646 13270 2370 931
647 13270 2374 931
553 13271 1912 931
595 13271 1787 931
622 13271 2497 931
623 13271 2524 931
624 13271 1803 931
625 13271 2122 931
626 13271 2043 931
627 13271 2378 931
628 13271 1660 931
636 13271 2348 931
637 13271 2345 931
646 13271 2370 931
647 13271 2374 931
553 13272 1912 931
595 13272 1900 931
622 13272 2497 931
623 13272 2524 931
624 13272 1803 931
625 13272 2122 931
626 13272 2043 931
627 13272 2378 931
628 13272 1660 931
636 13272 2348 931
637 13272 2345 931
646 13272 2370 931
647 13272 2374 931
553 13273 1912 931
595 13273 1899 931
622 13273 2497 931
623 13273 2524 931
624 13273 1803 931
625 13273 2122 931
626 13273 2043 931
627 13273 2378 931
628 13273 1660 931
636 13273 2348 931
637 13273 2345 931
646 13273 2370 931
647 13273 2374 931
553 13212 1973 940
595 13212 1905 940
622 13212 2497 940
623 13212 2501 940
624 13212 1803 940
625 13212 2147 940
626 13212 1829 940
627 13212 1659 940
628 13212 1660 940
636 13212 2348 940
637 13212 2345 940
646 13212 2370 940
647 13212 2374 940
553 13213 1973 940
595 13213 1789 940
622 13213 2497 940
623 13213 2501 940
624 13213 1803 940
625 13213 2147 940
626 13213 1829 940
627 13213 1659 940
628 13213 1660 940
636 13213 2348 940
637 13213 2345 940
646 13213 2370 940
647 13213 2374 940
553 13214 1973 940
595 13214 2499 940
622 13214 2497 940
623 13214 2501 940
624 13214 1803 940
625 13214 2147 940
626 13214 1829 940
627 13214 1659 940
628 13214 1660 940
636 13214 2348 940
637 13214 2345 940
646 13214 2370 940
647 13214 2374 940
553 13215 1973 940
595 13215 1787 940
622 13215 2497 940
623 13215 2501 940
624 13215 1803 940
625 13215 2147 940
626 13215 1829 940
627 13215 1659 940
628 13215 1660 940
636 13215 2348 940
637 13215 2345 940
646 13215 2370 940
647 13215 2374 940
553 13216 1973 940
595 13216 1900 940
622 13216 2497 940
623 13216 2501 940
624 13216 1803 940
625 13216 2147 940
626 13216 1829 940
627 13216 1659 940
628 13216 1660 940
636 13216 2348 940
637 13216 2345 940
646 13216 2370 940
647 13216 2374 940
553 13217 1973 940
595 13217 1899 940
622 13217 2497 940
623 13217 2501 940
624 13217 1803 940
625 13217 2147 940
626 13217 1829 940
627 13217 1659 940
628 13217 1660 940
636 13217 2348 940
637 13217 2345 940
646 13217 2370 940
647 13217 2374 940
553 13211 1973 940
595 13211 1904 940
622 13211 2497 940
623 13211 2501 940
624 13211 1803 940
625 13211 2147 940
626 13211 1829 940
627 13211 1659 940
628 13211 1660 940
636 13211 2348 940
637 13211 2345 940
646 13211 2370 940
647 13211 2374 940
553 13239 1973 945
595 13239 1904 945
622 13239 2497 945
623 13239 2501 945
624 13239 1803 945
625 13239 2124 945
626 13239 1723 945
627 13239 1659 945
628 13239 1660 945
636 13239 2348 945
637 13239 2345 945
646 13239 2370 945
647 13239 2374 945
553 13240 1973 945
595 13240 1905 945
622 13240 2497 945
623 13240 2501 945
624 13240 1803 945
625 13240 2124 945
626 13240 1723 945
627 13240 1659 945
628 13240 1660 945
636 13240 2348 945
637 13240 2345 945
646 13240 2370 945
647 13240 2374 945
553 13241 1973 945
595 13241 1789 945
622 13241 2497 945
623 13241 2501 945
624 13241 1803 945
625 13241 2124 945
626 13241 1723 945
627 13241 1659 945
628 13241 1660 945
636 13241 2348 945
637 13241 2345 945
646 13241 2370 945
647 13241 2374 945
553 13242 1973 945
595 13242 2499 945
622 13242 2497 945
623 13242 2501 945
624 13242 1803 945
625 13242 2124 945
626 13242 1723 945
627 13242 1659 945
628 13242 1660 945
636 13242 2348 945
637 13242 2345 945
646 13242 2370 945
647 13242 2374 945
553 13243 1973 945
595 13243 1787 945
622 13243 2497 945
623 13243 2501 945
624 13243 1803 945
625 13243 2124 945
626 13243 1723 945
627 13243 1659 945
628 13243 1660 945
636 13243 2348 945
637 13243 2345 945
646 13243 2370 945
647 13243 2374 945
553 13244 1973 945
595 13244 1900 945
622 13244 2497 945
623 13244 2501 945
624 13244 1803 945
625 13244 2124 945
626 13244 1723 945
627 13244 1659 945
628 13244 1660 945
636 13244 2348 945
637 13244 2345 945
646 13244 2370 945
647 13244 2374 945
553 13245 1973 945
595 13245 1899 945
622 13245 2497 945
623 13245 2501 945
624 13245 1803 945
625 13245 2124 945
626 13245 1723 945
627 13245 1659 945
628 13245 1660 945
636 13245 2348 945
637 13245 2345 945
646 13245 2370 945
647 13245 2374 945