Further digging has made me believe that
I can not use several tables in the select
statement within a function, is this true?

I tried another approach where I first created
a view to hold the proper columns from the
two different tables and then use a select
statement to retrieve the rows I wanted.
This did the trick.

My followup question is therefor, is this the
"proper" way of doing it. That is, should I use
the view approach instead?

Cheers,
Diod