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

The URL Is:
http://www.chinesetown.co.nz/template/default/wind/index/ads.php?id=242&w=780&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