BUG - spaces in IFNULL call in query caused an sql error on our install

git-svn-id: http://svn.montala.net/svn/resourcespace@4696 c08608d7-6e46-0410-86ca-f2a6f1370df5