Update cursors.py

Reverting commit 8a75cc2c1533821c5591cd487e881b1cd69106ea
Forgot to add line

self.lastexecuted = q

to SSCursor class method _query