Fix off by one error

One too many rows are returned
Merge pull request #54 from philrandal/master

Fix off by one error