An aggregate function is not allowed in the %1!s! clause when the FROM clause contains a nested INSERT, UPDATE, DELETE, or ...