In a medium bowl, whisk together the flour, cinnamon, baking powder and baking soda. Set aside. In the bowl of your mixer, beat together at high speed the cooled and melted butter, sugar and egg until pale yellow. By hand, stir in the walnuts and apples until evenly coated. Add the flour mixture, and stir until combined.