In sql server 2008, I have the following query:
select
c.title as categorytitle,
s.title as subcategorytitle,
i.title as itemtitle
from cat
Maybe this join also should be a left join?
join items i on ic.itemid = i.itemid and i.siteid = 132
EDIT:
Now you are selecting only existing site ids in the where clause:
i.siteid = 132
It should allow null values, try something like this:
(i.siteid = 132 or i.siteid is null)
or you could move i.siteid = 132 back to the join condition