> SQL:
> SELECT *
> FROM (((( auction_item_categories_sub5 AS s5
> INNER JOIN auction_item_categories_sub4 AS s4 ON
> s5.category_id = s4.id )
> INNER JOIN auction_item_categories_sub3 AS s3 ON
> s4.category_id = s3.id )
> INNER JOIN auction_item_categories_sub2 AS s2 ON
> s3.category_id = s2.id )
> INNER JOIN auction_item_categories_sub AS s ON
> s2.category_id = s.id )
> INNER JOIN auction_item_categories AS c ON
> s.category_id = c.id
> WHERE auction_item_categories.id = 1
You are sill missing the alias in the SELECT. First off, selecting * is not
a good idea at all since my guess is that you don't need all the columns.
So, change that SELECT * to something else depening upon which table you
need the values from.
SELECT
s.*,
s2.*,
s3.*,
s4.*,
s5.*
Get rid of the * above and list the columns you want.
Mike
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:190631
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54