消息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 < 1713586491 AND g.promote_end_date > 1713586491, 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 ('389','416','417','421') OR g.goods_id IN ('398','399','400','401','402','403','404','405','406','407','408','409','410','411','412','413','414','415','416','417','418','419','420','421','422','423','424','425','426','427','428','429','430','431','432','433','434','494','495','496','497','498','509','510','511','526','527','528','529','530','531','535','536','537','538','576','581','590','595','598','621','657','686','688','700','725','726','811','813','832','833','834','835','836','837','838','839','840','857','944','945','946','1013','1014','1015','1016','1017','1018','1022','1036','1043','1044','1045','1046','1047','1063','1065','1066','1069','1119','1138','1139','1140','1141','1146','1147','1153','1156','1157','1158','1159','1160','1161','1162','1163','1166','1167','1168','1170','1172','1175','1176','1177','1179','1189','1190','1191','1194','1195','1196','1197','1198','1199','1200','1201','1202','1203','1204','1205','1232','1234','1235','1237','1238','1239','1240','1241','1242','1243','1244','1245','1246','1248','1249','1250') ) 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