Changing seats with a passenger just before entering a DWI checkpoint didn’t work for a 50-year-old Buffalo man.

Jose R. Serrano Jr., of Linwood Avenue, has pleaded guilty to felony DWI and aggravated unlicensed operation, Erie County District Attorney Frank A. Sedita III announced.

Serrano changed seats with his passenger before entering a Buffalo police DWI checkpoint last July. Prosecutors say he admitted to drinking six beers, failed four sobriety tests and registered a blood-alcohol level of 0.15 percent. His license had been revoked because of two prior drunken-driving charges, authorities said.

Serrano faces a maximum prison sentence of four years when he’s sentenced June 12 before State Supreme Court Justice John L. Michalski.