can not write sql err_log.

Mysql class 错误:
来源: /news_detial.php?i=47
信息: 执行查询出错:
SQL: select * from news where id<47 and n_type= and n_fabu=0 and n_status=0 order by id desc limit 0,1
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 'and n_fabu=0 and n_status=0 order by id desc limit 0,1' at line 1