Array ( [0] => Array ( [file] => /home/workersc/public_html/articles.php [line] => 14 [function] => query [class] => Ozone [object] => Ozone Object ( [QUERY_COUNT] => 0 [link_id] => ) [type] => -> [args] => Array ( [0] => SELECT Articles.*, Categories.*, Sections.* FROM Articles, Categories, Sections WHERE Articles.CID = Categories.CID AND Sections.SID = Categories.SID AND Sections.SID = AND Categories.CID = 31 AND Articles.Publish = 1 ORDER BY Articles.BDate DESC, Articles.BID DESC ) ) ) Invalid query: 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 'AND Categories.CID = 31 AND Articles.Publish = 1 ORDER BY Articles.BDate DESC, A' at line 1
The Query: SELECT Articles.*, Categories.*, Sections.* FROM Articles, Categories, Sections WHERE Articles.CID = Categories.CID AND Sections.SID = Categories.SID AND Sections.SID = AND Categories.CID = 31 AND Articles.Publish = 1 ORDER BY Articles.BDate DESC, Articles.BID DESC

1