Query offset outside of the loop.