fixes sql query without offset