A 44-year-old Troy man who police say was drunk and had an open can of Four Loko fruit-flavored malt liquor while driving a backhoe down Central Avenue pleaded guilty Wednesday to felony driving while intoxicated.

Jesus O'Farril will be sentenced to up to six months in jail for the Feb. 1 incident. O'Farril was found to have a blood-alcohol content of 0.18 percent, more than twice the 0.08 percent legal limit.

He was driving the John Deere machine erratically and "violating several vehicle and traffic laws" when he was pulled over on the 400 block of Central Avenue, police said.

At the time of the arrest, O'Farril had an open can of the alcoholic energy drink in the backhoe and smelled of alcohol, police said.

"We usually don't see heavy equipment being operated in this manner on public streets," Albany County District Attorney David Soares said in a statement. "I'm thankful to the Albany Police Department for this stop."

O'Farril will be sentenced May 15 to the jail time and five years of probation. He also will have an Interlock device on his car for five years, pay a fine of $1,000 and will have his driver's license revoked for one year, the district attorney's office said.