Hi,
You can fix this by making a ïn-between" table.
Your tables:
CATEGORIES
Id
Name
ParentID
ITEMS
ID
...
Create:
CATE_TO_ITEM
CatNr
ItemNr
So fill this table like this:
CatNr ItemNr
1 1
2 2
3 2
3 3
2 1
Query like:
Select * from CATEGORIES, CATE_TO_ITEM, ITEMS where ((CATEGORIES.ID eq CATE_TO_ITEM.CatId) and (ITEMS.ID eq CATE_TO_ITEM.itemNr) and ITEMS.ID eq 1)
Hope this helps