1001 Invalid Cursor

The prepare portion is aged out of cache.

Resolution:

Re-enter the code while invalidating the prepare portion.