A former mayoral candidate in a New Mexico border city has pleaded guilty to extortion for secretly recording an opponent receiving a lap dance from a topless woman.

The Las Cruces Sun-News reports that Daniel Salinas of Sunland Park accepted a plea agreement this week and admitted to felony extortion and conspiracy to commit extortion against Gerardo Hernandez.

In 2012, Sunland Park drew national headlines after authorities say Salinas secretly recorded Hernandez receiving the lap dance in his campaign office.

The year before, former Mayor Martin Resendiz said he was drunk when he signed nine contracts with a California company for $1 million.

State District Judge Darren Kugler gave the 31-year-old Salinas a three-year deferred sentence with supervised probation, and 100 hours of community service.