If this happened to you, my first guess is the oil was too hot, and the outsides cooked so fast that your insides are raw dough. You don't want the oil hotter than this, or your donuts will cook on the outside too fast, and the inside will not cook.