The attempt was made to issue an SQL statement with CURRENT OF for the result table without having previously issued a successful FETCH statement on the specified result table.
Issue a FETCH statement for this result table and repeat the SQL statement.