Iterator was duplicating first result due to extra data seek
Iterator was duplicating first result due to extra data seek. This also causes the last resultset to be lost in iterator mode.
Iterator requires access to additional properties
Since the iterator may throw an error, it needs to have access to both $this->link and $db->dieOnErrors
Also $zp_real was incorrectly used where $this->dieOnErrors was required
Rewritten test due to signature change.
Merge pull request #197 from drbyte/fix-iterator-bug

Fix iterator bugs