ECSHOP 用手机打开category时出错 提示SQL的1064错误 50
如下错误提示,大神们帮忙给看一下哪里出错了。。。MySQLservererrorreport:Array([0]=>Array([message]=>MySQLQuery...
如下错误提示,大神们帮忙给看一下哪里出错了。。。
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT g.goods_id, g.goods_name, g.market_price, g.shop_price AS org_price, IFNULL(mp.user_price, g.shop_price * '1') AS shop_price, g.promote_price, promote_start_date, promote_end_date, g.goods_brief, g.goods_thumb, g.goods_img FROM `dunbei.com`.`ecs_goods` AS g LEFT JOIN `dunbei.com`.`ecs_member_price` AS mp ON mp.goods_id = g.goods_id AND mp.user_rank = '0' WHERE g.is_on_sale = 1 AND g.is_alone_sale = 1 AND g.is_delete = 0 AND (g.cat_id IN ('236','237','238','239','240') OR g.goods_id IN ('1942') ) ORDER BY RAND()ORDER BY g.goods_id DESC, g.sort_order ) [2] => Array ( [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 g.goods_id DESC, g.sort_order' at line 1 ) [3] => Array ( [errno] => 1064 ) ) 展开
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT g.goods_id, g.goods_name, g.market_price, g.shop_price AS org_price, IFNULL(mp.user_price, g.shop_price * '1') AS shop_price, g.promote_price, promote_start_date, promote_end_date, g.goods_brief, g.goods_thumb, g.goods_img FROM `dunbei.com`.`ecs_goods` AS g LEFT JOIN `dunbei.com`.`ecs_member_price` AS mp ON mp.goods_id = g.goods_id AND mp.user_rank = '0' WHERE g.is_on_sale = 1 AND g.is_alone_sale = 1 AND g.is_delete = 0 AND (g.cat_id IN ('236','237','238','239','240') OR g.goods_id IN ('1942') ) ORDER BY RAND()ORDER BY g.goods_id DESC, g.sort_order ) [2] => Array ( [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 g.goods_id DESC, g.sort_order' at line 1 ) [3] => Array ( [errno] => 1064 ) ) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询