The way I am doing my pagination now is as follow:
===============
First I do the normal query, and get all the result back.
After that I count the results, lets say 300. I do this with num_results
Now I check what page the user wants, and the limit, lets say 30,10.
Last I do the new query, with the limit selected.
===============
Using this method I do almost the same query twice, is there no other way to do this, in just one go.