No aggregate function matches the given name and argument types. Perhaps you misplaced ORDER BY; ORDER BY must appear after all regular arguments of the aggregate.
[Description]
Supplementary information was output.
[System Processing]
None.
[Action]
Refer to this message together with the message that was output immediately beforehand.