Oracle Message PLS-00653 - aggregate/table functions are not allowed in PL/SQL scope

ERRORaggregate/table functions are not allowed in PL/SQL scope
CAUSEUser tried to use a table/aggregate function in PL/SQL scope.
ACTIONDo not use table/aggregate function in PL/SQL scope.