Fatal error: Uncaught exception 'PearException' with message 'DB Error: syntax error
SELECT c.*,c.datetime AS date,m.UserName AS postedBy,c.MemberID AS postedByMemberID,mini.name AS minisiteName,mini.level AS minisiteLevel FROM tsr_item_comments AS c INNER JOIN TSR.Member AS m ON (m.MemberID=c.MemberID) LEFT JOIN TSR.Minisite AS mini ON (mini.MemberID=c.MemberID) WHERE c.NewItemID= ORDER BY datetime DESC [nativecode=1064 ** 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 'ORDER BY datetime DESC' at line 1]' in /web/production/set_db.php:30
Stack trace:
#0 [internal function]: errhndl(Object(DB_Error))
#1 /usr/local/lib/php/PEAR.php(895): call_user_func('errhndl', Object(DB_Error))
#2 /usr/local/lib/php/DB.php(888): PEAR_Error->PEAR_Error('DB Error: synta...', -2, 16, 'errhndl', 'SELECT c.*,c.da...')
#3 /usr/local/lib/php/PEAR.php(557): DB_Error->DB_Error(-2, 16, 'errhndl', 'SELECT c.*,c.da...')
#4 /usr/local/lib/php/DB/common.php(1849): in /web/production/set_db.php on line 30