Petitioner sought a writ of mandate contending he was eligible for Proposition 36 sentencing, because although he had a conviction within the five-year "washout" period, the conviction was for an offense which occurred in 1997, which was outside the washout…