Seaquel
SQL Server error code

SQL Server error 130

SQL Server raises error 130 at severity 16, which marks a problem with the query or data that you can correct.

Cannot perform an aggregate function on an expression containing an aggregate or a subquery.
Msg130
Severity16
Group0–999

How to fix it

In other databases

Source: Database Engine events and errors