This is down to the nuetral position switch on the gearbox - it is a £50 part best sourced new from subaru.
Chucks out random flashing CELs and occasionally misfire codes or cam position sensor faults (none of which are the actual problem)
Easy fix and a VERY common problem.