Fix off by one error

One too many rows are returned