Fixed bug, when not specifying a limit

When you don't specify a limit you get a wrong query.