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 (51, 50)

Query time 0.00037

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.0727132,
    "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"],
          "loops": 1,
          "rows": 32,
          "cost": 0.00795768,
          "filtered": 100,
          "attached_condition": "gp.group_id in (51,50)",
          "using_index": true
        }
      },
      {
        "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": ["u428615623_ecartifygonje.gp.group_id"],
          "loops": 32,
          "rows": 1,
          "cost": 0.03196816,
          "filtered": 100,
          "using_index": true
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "lang_code",
          "key_length": "12",
          "used_key_parts": ["lang_code", "feature_id", "product_id"],
          "ref": [
            "const",
            "u428615623_ecartifygonje.gpf.feature_id",
            "u428615623_ecartifygonje.gp.product_id"
          ],
          "loops": 32,
          "rows": 1,
          "cost": 0.03278736,
          "filtered": 100,
          "attached_condition": "pfv.lang_code = 'en'",
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
45 369 5723 50
45 417 5732 50
45 418 5733 50
45 419 5734 50
45 420 5735 50
45 421 5736 50
45 422 5737 50
45 423 5738 50
45 424 5724 50
45 425 5725 50
45 426 5726 50
45 427 5727 50
45 428 5728 50
45 429 5729 50
45 430 5730 50
45 431 5731 50
45 368 5723 51
45 432 5732 51
45 433 5733 51
45 434 5734 51
45 435 5735 51
45 436 5736 51
45 437 5737 51
45 438 5738 51
45 439 5724 51
45 440 5725 51
45 441 5726 51
45 442 5727 51
45 443 5728 51
45 444 5729 51
45 445 5730 51
45 446 5731 51