Message Oracle ORA-35578 - (SQLOUT11) SQL cursor number cannot be used with CURRENT OF syntax

ERROR(SQLOUT11) SQL cursor number cannot be used with CURRENT OF syntax
CAUSEThe CURRENT OF syntax in the WHERE clause tried to use a cursor that was not declared with the FOR UPDATE [ of ] SQL syntax.
ACTIONAdd the FOR UPDATE [ OF ] SQL syntax to the cursor specified.