运行分享方维购物分享系统2.2商业版程序的时候出现的错误
FANWE Database Error
The database has encountered a problem.
Error messages:[Type] dbquery_error
[1064] 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 ') LIMIT 0,20' at line 1
[Query] SELECT share_id,uid,content,collect_count,comment_count,create_time,cache_data FROM share WHERE share_id IN () LIMIT 0,20
 
Program messages:
[Line: 0027]note.php(NoteModule::goods)
[Line: 0011]core/module/note.module.php(NoteModule::show)
[Line: 0068]core/module/note.module.php(ShareService->getCollectShareByShare)
[Line: 2860]core/service/share.service.php(FDB->fetchAll)
[Line: 0170]core/class/db.class.php(FDB->_execute)
[Line: 0303]core/class/db.class.php(FDbMySql->fetchAll)
[Line: 0111]core/class/mysql.class.php(FDbMySql->query)
[Line: 0151]core/class/mysql.class.php(FDbMySql->halt)
[Line: 0233]core/class/mysql.class.php(FanweError->dbError)
[Line: 0121]core/class/error.class.php(FanweError->debugBacktrace)

解决方案 »

  1.   

    不是应经提示mysql语法有问题。
      

  2.   

    share_id IN () LIMIT 0,20
    share_id in()没有这样的语法的。
      

  3.   

    这个属于Mysql问题,我给楼主把帖子移到对应版块,希望问题能够尽快解决
      

  4.   

    在生成这个查询语句的时候输出看看语句对不对,对于那个 in 条件的生成你着重看看,括号里应该要有数据的,没有的话,是不是变量为空没取到数据,或者你贴出生成 sql 语句的那段代码看看是不是生成语句弄错了。SELECT share_id,uid,content,collect_count,comment_count,create_time,cache_data FROM share WHERE share_id IN () LIMIT 0,20
     
      

  5.   

     SELECT share_id,uid,content,collect_count,comment_count,create_time,cache_data FROM share WHERE share_id IN () LIMIT 0,20
    in里面应该有值才不会报错
      

  6.   

    SELECT share_id,uid,content,collect_count,comment_count,create_time,cache_data FROM share WHERE share_id IN () LIMIT 0,20
    语法出错啊。你的  share_id IN () 括号中什么都没有。