Within a SELECT statement, the partition property has been defined twice or after referring to the first aggregation function.