Oracle Message DIA-48222 - Predicates/Order By Not Allowed

ERRORPredicates/Order By Not Allowed
CAUSEA predicate or order by can not be added after fetch has started.
ACTIONPut the predicate or order by call before the first fetch.