我试图不显示b.title
标题中值为“Money”的任何结果,但%Money%
正在返回:
Unknown column 'Money' in 'where clause'
询问:
SELECT `id`,`name`
FROM `users` AS u
WHERE `id` NOT IN ('
SELECT `user_id`
FROM `purchases` AS p
INNER JOIN `books` b ON b.id = p.book_id AND b.title LIKE '%Money%'')