Sorry Jochem you were right.

Anyway, to get things more concise here, perhaps I'm not even doing the right 
kind of join... here is my db structure...

http://www.webgoblins.net/db.gif

The Last Code I tried was Jochems and while it did run succesfully, there were 
no results returned. Essentially What I'm doing is selecting all related 
categories from the where all the ( auction_item_categories_sub.category_id = 1 
) and then it should filter down with the appropriate logic. The trouble is, 
I'm not having a great time finding that logic.

[CODE]
SELECT *
FROM ((((   auction_item_categories_sub5 s5
            INNER JOIN auction_item_categories_sub4 s4 ON s5.category_id  = 
s4.id)
            INNER JOIN auction_item_categories_sub3 s3 ON s4.category_id = 
s3.id)
            INNER JOIN auction_item_categories_sub2 s2 ON s3.category_id = 
s2.id)
            INNER JOIN auction_item_categories_sub s ON s2.category_id = s.id)
            INNER JOIN auction_item_categories c ON s.category_id = c.id
            WHERE c.id = 1 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190637
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to