存在的列的 HAVING 子句有问题
SELECT COUNT(*) AS `numrows`
FROM (`customers`)
LEFT JOIN `parent_companies` AS j2ee39a6a ON `j2ee39a6a`.`id` = `customers`.`parent_company_id`
WHERE `customers`.`is_approved` = 0
AND `organization` LIKE '%Pizza%'
OR `title` LIKE '%Pizza%'
OR `picture` LIKE '%Pizza%'
HAVING `customers`.`is_approved` = 0
我真的不明白为什么它应该有这样的问题 - 这是由 Grocerycrud 生成的查询 - 自动..用于搜索特定输出..