array(5) { [0]=> array(6) { ["file"]=> string(47) "/data/web/hjresearch.com/inc/class/db.class.php" ["line"]=> int(40) ["function"]=> string(8) "halt_msg" ["class"]=> string(2) "db" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> &string(162) "SQL语句出错:select AttrId, Name_jp, CartAttr, ColorAttr, Type from products_attribute where ParentId='172' order by (MyOrder = 0) ASC, MyOrder ASCAttrId asc" } } [1]=> array(6) { ["file"]=> string(47) "/data/web/hjresearch.com/inc/class/db.class.php" ["line"]=> int(47) ["function"]=> string(5) "query" ["class"]=> string(2) "db" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> &string(144) "select AttrId, Name_jp, CartAttr, ColorAttr, Type from products_attribute where ParentId='172' order by (MyOrder = 0) ASC, MyOrder ASCAttrId asc" } } [2]=> array(6) { ["file"]=> string(56) "/data/web/hjresearch.com/static/themes/default/goods.php" ["line"]=> int(29) ["function"]=> string(7) "get_all" ["class"]=> string(2) "db" ["type"]=> string(2) "::" ["args"]=> array(4) { [0]=> &string(18) "products_attribute" [1]=> &string(14) "ParentId='172'" [2]=> &string(42) "AttrId, Name_jp, CartAttr, ColorAttr, Type" [3]=> &string(40) "(MyOrder = 0) ASC, MyOrder ASCAttrId asc" } } [3]=> array(4) { ["file"]=> string(51) "/data/web/hjresearch.com/static/static/inc/init.php" ["line"]=> int(226) ["args"]=> array(1) { [0]=> string(56) "/data/web/hjresearch.com/static/themes/default/goods.php" } ["function"]=> string(7) "include" } [4]=> array(4) { ["file"]=> string(34) "/data/web/hjresearch.com/index.php" ["line"]=> int(7) ["args"]=> array(1) { [0]=> string(51) "/data/web/hjresearch.com/static/static/inc/init.php" } ["function"]=> string(7) "include" } } SQL语句出错:select AttrId, Name_jp, CartAttr, ColorAttr, Type from products_attribute where ParentId='172' order by (MyOrder = 0) ASC, MyOrder ASCAttrId asc
错误代码:#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 'ASCAttrId asc' at line 1