This is a well documented and covered problem (as well as the solution) over on the Nissan Primera Owners Club - http://www.npoc.co.uk/forum/default.asp
You have an earth issue with one of your rear light clusters, that is throwing the system and throwing the electrical gremlins. It's a common fault.
Come visit the forums, we are the largest Nissan Primera club in Europe (based in the UK).
Many thanks and take care,
Shaun
Shaun "essNchill"
July 2008