Oracle Message PLS-01415 - Use of aggregate value here

ERRORUse of aggregate value here
CAUSEUse of aggregate value here is not in ANSIs grammar.
ACTIONNone