当我尝试将产品添加到wordpress-> woocomerce时,出现错误消息:
WordPress数据库错误:[您的SQL语法中有错误;检查与您的MySQL服务器版本对应的手册,以获得正确的语法使用')或p.product_id = 30582或g.apply_to = 'all' GROUP BY g.id ORDER BY g' at line 5]
SELECT
g.*
, GROUP_CONCAT(DISTINCT c.category_id) as `categories`
, GROUP_CONCAT(DISTINCT p.product_id) as `products`
FROM wpav_za_groups as g
LEFT JOIN wpav_za_categories_to_groups as c ON c.group_id = g.id
LEFT JOIN wpav_za_products_to_groups as p ON p.group_id = g.id
WHERE
c.category_id IN ()
OR p.product_id = 30582
OR g.apply_to = 'all'
GROUP BY g.id
ORDER BY g.priority ASC
你能帮忙查一下是什么问题吗?
2条答案
按热度按时间avwztpqn1#
IN子句中缺少文本或数据
代替text1和test2,您必须输入自己的文本或数据
jslywgbw2#