Welcome to NICO.
P1145 indicates the driver's side camshaft position sensor possibly being faulty. Swap it with the driver's side and rescan for codes - if P1140 shows up, replace the camshaft position sensor. If P1145 is still present, the solenoid is bad. See
this guide for the sensors' locations.
Make sure cylinder 5 (passenger side, closest to the firewall) has the ignition coil pack's wiring harness plugged in and ensure the wiring is intact.