You can have an attorney in a misdemeanor or felony case.
But not in an infraction since there is no jail time.
somebody needs to challenge that, that is effed up, there is a right to counsel