Query Error: select ad.config as config from pw_advert as ad,pw_advertclass as adc where ad.varname=adc.id and adc.id=96 AND ad.state=1 order by vieworder limit ;

The URL Is:
http://www.chinesetown.co.nz/template/default/wind/index/ads.php?id=96&w=670&h=80%CE%BDm=1

MySQL Server Error:
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 1 ( 1064 )

You Can Get Help In:
http://www.Chinesetown.co.nz