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

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

方法一:

升级mysql

方法二:

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

世界上最美的风景,是自己努力的模样