Error. News Database query failed.
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 publish='Y'' at line 1
SELECT n.prid, n.contenttypeid, n.newstype, n.prid, n.acct, m.acct AS tgramsid, n.headline, n.ienheadline, n.iensubheadline, n.newssummary, n.bodytext, IF(m.acct IS NOT NULL, m.company, n.companyname) AS company, IF(m.acct IS NOT NULL,m.city,n.companycity) AS city, IF(m.acct IS NOT NULL, m.state, n.companystate) AS state, IF(m.acct IS NOT NULL, m.zip, n.companyzip) AS zip, IF(m.acct IS NOT NULL, m.country, n.companycountry) AS country, IF(m.acct IS NOT NULL, m.url, n.companyurl) AS url, IF(m.acct IS NOT NULL, m.phone, n.companytelephone) AS phone, DATE_FORMAT(n.datepublished, '%M %e, %Y') AS pubdate, DATE_FORMAT(n.dateofrelease, '%M %e, %Y') AS reldate FROM tnn_news AS n LEFT JOIN tgrams.main AS m ON n.acct=m.acct WHERE n.prid=multifamil... AND publish='Y'