Mikko,
Not sure if you saw my comment about the code but it did not work, after I tried to echo the value of $cat (which is obtained by the query) yet nothing is shown.
I just stuck that code as you see it on my template, should it have worked or am I missing something?
Jacob