消息MySQL Query Error
SQLSELECT g.goods_id, g.goods_name, g.goods_name_style, g.click_count, g.goods_number, g.market_price, g.is_new, g.is_best, g.is_hot, g.shop_price AS org_price, IFNULL(mp.user_price, g.shop_price * '1') AS shop_price, g.promote_price, IF(g.promote_price != '' AND g.promote_start_date < 1714060018 AND g.promote_end_date > 1714060018, g.promote_price, shop_price) AS shop_p, g.goods_type, g.promote_start_date, g.promote_end_date, g.goods_brief, g.goods_thumb, g.goods_img FROM `tea0768`.`ecs_goods` AS g LEFT JOIN `tea0768`.`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 ('388','413','516','513','512','511','518','523') OR g.goods_id IN ('435','436','437','438','439','440','441','442','443','444','445','446','447','448','449','450','451','452','453','454','455','456','457','458','459','460','461','462','463','464','465','466','467','468','469','470','471','472','473','474','475','476','477','478','479','480','481','482','483','484','485','486','487','488','489','490','491','492','512','513','514','515','516','517','518','519','520','521','522','605','643','647','665','703','710','720','722','764','766','771','772','779','781','784','789','796','797','798','799','812','816','817','818','819','820','824','828','841','842','881','883','886','887','904','919','921','922','923','982','983','984','985','987','989','990','992','997','1019','1027','1032','1034','1035','1051','1061','1070','1071','1072','1073','1082','1083','1085','1115','1118','1126','1143','1145','1225','1251','1252','1253','1254','1255') ) AND g.supplier_id=0AND g.brand_id=2 ORDER BY last_update DESC LIMIT 16
错误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 'g.brand_id=2 ORDER BY last_update DESC LIMIT 16' at line 1
代码1064