query init failing for some reason