消息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 < 1711667957 AND g.promote_end_date > 1711667957, 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 ('387','410') OR g.goods_id IN ('344','345','385','386','387','388','389','390','391','393','568','569','570','571','582','583','623','629','650','651','652','660','668','729','739','794','814','897','913','943','962','963','964','994','999','1010','1020','1021','1024','1029','1031','1033','1078','1084','1101','1104','1105','1106','1108','1109','1148','1149') ) 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