In all cases where any parent, legal guardian, or other person having legal custody of a minor child petitions the court to extend the jurisdiction of the juvenile court until the minor child's eighteenth birthday, the court shall appoint an attorney to represent the minor child. An individual filing the petition shall pay the attorney fees of the minor child.
§ 211.034, RSMo