Only an attorney may represent anyone other than him- or herself; no other person, including a nonlawyer with a power of attorney, may represent someone in court--though as you note, any person may choose to represent him- or herself. If a criminal defendant cannot afford an attorney, he or she should so notify the court, and one will be appointed for  him or her.