Hi there
I'm trying to create a query that looks at 3 table, where 1 table links the other 2.
My query is using 2 inner joins, i'm not sure if i can do this.
Well heres the query
SELECT com_categories.com_cat_id, com_categories.name, com_categories.description, com_categories.image, com_categories.directory, com_category_site.site_id, com_category_site.com_cat_id, site_details.site_id, site_details.name FROM com_categories INNER JOIN com_category_site INNER JOIN site_details ON com_categories.com_cat_id = com_category_site.com_cat_id AND com_category_site.site_id = site_details.site_id WHERE com_categories.com_cat_id EQ #id# ORDER BY site_details.name
And heres the error:
Syntax error in FROM clause.
The error occurred while processing an element with a general identifier of (CFQUERY)
thanks in advance
dunskii
I'm trying to create a query that looks at 3 table, where 1 table links the other 2.
My query is using 2 inner joins, i'm not sure if i can do this.
Well heres the query
SELECT com_categories.com_cat_id, com_categories.name, com_categories.description, com_categories.image, com_categories.directory, com_category_site.site_id, com_category_site.com_cat_id, site_details.site_id, site_details.name FROM com_categories INNER JOIN com_category_site INNER JOIN site_details ON com_categories.com_cat_id = com_category_site.com_cat_id AND com_category_site.site_id = site_details.site_id WHERE com_categories.com_cat_id EQ #id# ORDER BY site_details.name
And heres the error:
Syntax error in FROM clause.
The error occurred while processing an element with a general identifier of (CFQUERY)
thanks in advance
dunskii