Within days of trial, defendant enters plea in Apple Valley