Error Class 24: Invalid Cursor State

Error Class 24: Invalid Cursor State
SQLSTATE Message Text
24000 Invalid cursor state - no current row.
24501.S The identified cursor is not open.