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 (52, 53, 54, 55, 56, 57, 58)

Query time 0.00046

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.03695869,
    "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": 14,
          "cost": 0.00945095,
          "filtered": 100,
          "attached_condition": "gp.group_id in (52,53,54,55,56,57,58)",
          "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": 14,
          "rows": 1,
          "cost": 0.01444687,
          "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": 14,
          "rows": 1,
          "cost": 0.01306087,
          "filtered": 100,
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
601 13460 12566 52
601 13488 12568 52
601 13461 12566 53
601 13489 12568 53
601 13462 12566 54
601 13490 12568 54
601 13463 12566 55
601 13491 12568 55
601 13464 12566 56
601 13492 12568 56
601 13465 12566 57
601 13493 12568 57
601 13466 12566 58
601 13494 12568 58