DB ERROR

=============================================================================
Mysql_Query : select *, goods_sale_price*1 as price,goods_sale_price*0 as goods_point from morning_goods_table where goods_class = '0' and approval_date > '0' and ( substring(goods_category,1,4) = '0139' or substring(goods_mcategory1,1,4) = '0139' or substring(goods_mcategory2,1,4) = '0139' or substring(goods_mcategory3,1,4) = '0139' or substring(goods_mcategory4,1,4) = '0139' or substring(goods_mcategory5,1,4) = '0139') order by goods_company desc limit 0,
Mysql_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
Mysql Error Num : 1064

=============================================================================