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 (
    37, 38, 39, 40, 461, 41, 170, 42, 156, 146, 
    140
  )

Query time 0.00035

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.08414446,
    "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": 36,
          "cost": 0.0159849,
          "filtered": 100,
          "attached_condition": "gp.group_id in (37,38,39,40,461,41,170,42,156,146,140)",
          "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": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "ref": ["u508912950_dev_2025.gp.product_id"],
          "loops": 36,
          "rows": 1,
          "cost": 0.03586178,
          "filtered": 100,
          "attached_condition": "pfv.lang_code = 'en'",
          "using_index": true
        }
      },
      {
        "table": {
          "table_name": "gpf",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "6",
          "used_key_parts": ["group_id", "feature_id"],
          "ref": [
            "u508912950_dev_2025.gp.group_id",
            "u508912950_dev_2025.pfv.feature_id"
          ],
          "loops": 36,
          "rows": 1,
          "cost": 0.03229778,
          "filtered": 100,
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
601 13445 12566 37
601 13473 12568 37
601 13446 12566 38
601 13474 12568 38
601 13447 12566 39
601 13475 12568 39
601 13448 12566 40
601 13476 12568 40
601 13449 12566 41
601 13477 12568 41
601 13450 12566 42
601 13478 12568 42
617 13899 12788 140
617 13900 12812 140
617 13901 12790 140
607 13919 12624 146
607 13920 12627 146
618 13963 12843 156
618 13964 12845 156
618 13965 12847 156
618 13966 12849 156
618 13967 12851 156
618 13968 12853 156
625 14140 12929 170
625 14141 12930 170
549 18508 12528 461
596 18508 12544 461
549 18509 12528 461
596 18509 12545 461
549 18510 12537 461
596 18510 12541 461
549 18511 12537 461
596 18511 12542 461
549 18513 12537 461
596 18513 12544 461
549 18514 12537 461
596 18514 12545 461
549 18515 13064 461
596 18515 12541 461
549 18516 13064 461
596 18516 12542 461
549 18517 13064 461
596 18517 12543 461
549 18518 13064 461
596 18518 12544 461
549 18519 13064 461
596 18519 12545 461