When there is no pagination, do not use subqueries and just simply fetch data [Fixes #46]