Limit processing was being done wrong, both offset and row limit process...

...ing were calculated wrong