Hello and welcome to justanswer.com
P1647 is for the B bank upstream oxygen sensor. This will be the front sensor on the passenger side cat converter. It's the one with a grey connector. That code is usually caused by the sensor but I have also seen issues with the harness going to the sensor.