Former state Rep. Christina Ayala will be prohibited from seeking office for two years under the terms of her guilty plea, entered Friday in Bridgeport Superior Court.

The guilty plea comes just a few days before jury selection was expected to begin on Monday.

Ayala, 31, was sentenced to one year in prison, but Judge Earl B. Richards III suspended the sentence, as long as Ayala promised not to run for public office for two years.

Ayala pleaded guilty Friday to two counts of providing a false statement to the State Elections Enforcement Commission. The 2013 investigation involved allegations that she had voted in districts where she did not reside.

During that investigation, according to court documents, Ayala fabricated evidence to show she lived at an address in a district even though she resided at an address outside the district.

Ayala served as a Democratic state representative from Bridgeport from 2012 until 2014 when she was defeated in a primary.