Well I figured it out. Ok, sort of. I abandoned the function idea in the view and decided to make another view which retrieved the same information. I then did an left join on the table in the first, main view with this new view. This made it all happy and well just plain work. I have no idea why darned thing did not work with the function but it works now. If anybody out there knows why, I would love to hear from you.