Well, perhaps I spoke too soon. It appears that either way (array or scalar) works fine for me in PHP 5.0.4 and PostgreSQL 7.4.7. I dont have an install of DB2 to see if it is a DB specific error. Have you tried a print_r on your $res to see if there are any better clues in there?