Database error!

mysql_error() returned:
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
Error #:
1064
Query:
SELECT * FROM `g_news` WHERE `catid`=0  ORDER BY `timestamp` DESC LIMIT