on a 1997 Toyota Avalon
California Emission Engine,I had the code P0135,by doing some search on this awesome website

,I was able to locate and replace the correct 02 sensor.
It was the one on the exhaust manifold,towards the firewall..got to it from the top.
The messed up thing was that even the official Denso website is confused about locations of 02 sensors

,however their pictures are correct.
Anyway after first ordering the wrong sensor

,I was able to get it right the second time.
In my case 97
California Avalon the correct part number was 234-4061.
Once the sensor was replaced,the CEL went out on its own,after the car was driven for a while.
Thanks everyone for recommending the Denso sensors and the great info,I would say stick with them,I found mine cheap on fleebay