Fix wrong offset handling
Correct offset/limit handling when related rows are also queried.