Ronald,
PostgreSQL isn't my strength, so I may not be able to help you in the long rum.... but there are lot's of people who might if you can give them the info they need to try. PHP programmers may be good... but clairvoyant we're not, usually🙂
Warning messages are meaningless unless you can see the code that causes them. What is auth.inc? A file from PHPNuke? phpMyPgAdmin? a script of your own creation? The best way to get help is to be as specific as possible when describing your problems (ie. warning/error msg's, PHP/HTTPD server/db versions, code snippets, etc.).
However, that being said....... click clairvoyant mode engaged:
Warning #1 is obviously an SQL failure. Check your db server and data to make sure that the relationship "staff" does exist or can be created by the SQL transaction. Also check your SQL statement(s) to make sure no error exists there.
Warnings #2 and 3 are from trying to send header data (ie set a cookie, use a header() redirect, etc.) are html output or whitespace has already been send. You need to either enable output_buffering in php.ini and re-start Apache or explictly call one of the output buffering functions at the top (like 1st line) of the page(s) in question. For more info on output buffering, consult the PHP manual:
http://www.php.net/manual/en/ref.outcontrol.php
Cheers,
Geoff A. Virgo