On a query without "from" this method would throw an exception