Cursor "name" does not have a valid table or view reference (Error 2067)

The specified cursor class does not have a table or view name that can be resolved to the associated database.