mysql版本引发的问题

Warning: SQL:
SELECT id,title,thumb,subtitle,type,price,credit,money,goodstype,hasoption,mincredit,minmoney FROM `ims_ewei_shop_creditshop_goods` where 1 and uniacid = :uniacid and status=1 and deleted=0 and cate=17 and id in() ORDER BY displayorder desc,id DESC LIMIT 0,10

SQL 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 ') ORDER BY displayorder desc,id DESC LIMIT 0,10' at line 2

因为mysql版本过低造成的,解决办法有二。

方法一:

升级mysql

方法二:

在php.ini中找到display_errors,把前面的 ;去掉

posted @ 2019-11-05 16:18  大熊童鞋  阅读(228)  评论(0编辑  收藏  举报