Error Trapped

Syntax error. in query expression '(((sect_category.section_id)=(SELECT sect_category.section_id FROM sect_category WHERE (((sect_category.cat_id)=));)))'.

while reading from DB

SELECT categories.*, sections.section_name, sections.section_id, sections.guide_name FROM sections INNER JOIN (categories INNER JOIN sect_category ON categories.cat_id = sect_category.cat_id) ON sections.section_id = sect_category.section_id WHERE (((sect_category.section_id)=(SELECT sect_category.section_id FROM sect_category WHERE (((sect_category.cat_id)=));))) ORDER BY sect_category.order;