I have a page table that includes navigation IDs, catID, subcatID, I use an inner join for the tables.
Tables:
pages
categories
subcat
I have added subSubID for a third level on the nav menu. How do I add the fourth table to the cfquery?
I want to add: inner join subSubcat on pages.subSubID = subSubcat.subSubID to the table below.
<cfquery name="getPages" datasource="#application.database#">
select *
from (pages INNER JOIN catagories ON pages.cat_id = catagories.cat_id)
inner join subcat on pages.subID = subcat.subID
Where catagory = '#title#'
order by pages.subID asc, pages.ordID asc
</cfquery>