Fix limits in JDatabaseQuery