Database Error

Error Number: 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 ‘-16 , 16’ at line 1

SELECT * FROM (SELECT a.nid as nid , a.nid_cat_news as nid_cat , a.nhit as nhit , a.cshort_content as cshort_content , a.ccontent as ccontent , a.cimage_thumb as cimage_thumb , b.ccat_news as ccat_news , a.ctitle as ctitle , a.cauthor as cauthor , a.ctag as ctag , a.alwcmt as alwcmt , a.nstatus as nstatus , a.niduser01 as niduser01 , a.nid_section_news as nid_section_news , c.csection_news as csection_news , a.ddate01 as ddate01 FROM rgn_tsection_news as c ,rgn_tnews as a LEFT JOIN rgn_tcat_news as b ON (a.nid_cat_news = b.nid) WHERE a.nid is not null AND a.nid_section_news = c.nid ) as view WHERE nid is not null AND nstatus = 1 AND nid_section_news = 9 AND nid_cat = 5 AND nid not in (select f.nid_translate from rgn_ttranslate as f where f.cobject_name = “tnews” ) order by ddate01 desc, nid desc limit -16 , 16

Similar Posts