Sounds a lot like the problem I had. Mine came up with Error Code: P0340 - Camshaft position sensor (can't remember which bank, 1 or 2). Usually the issue I had was starting the car when it was warm especially. The way I did it was by unplugging the sensor until I had sourced another one to fit (can do it yourself even if, like me, you are not very knowledgable technically). You won't have traction for that time, but it can be fun.
Once you have new sensor, I just plugged it in, tightened the connecting screw, got an ECU reset and it's good to go!
Hope this helps.