error in query: SELECT DISTINCT dir_categories.cat_id, dir_categories.cat_slug, dir_categories.cat_name
FROM dir_categories, dir_ctoe, dir_stoe
WHERE dir_categories.cat_id = dir_ctoe.cat_id
AND dir_ctoe.exb_id = dir_stoe.exb_id
AND dir_stoe.sec_id =
"
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5