当我尝试运行此查询时:
select * FROM `activity`
WHERE user_id = 1
AND activity_id NOT LIKE (select activity_id from activity where user_id = 1 ORDER BY activity_id DESC LIMIT 8)
我收到以下错误:
Subquery returns more than 1 row
我怎么解决这个问题?我想从表中选择活动 ID,不包括某个用户的最新 8 个活动 ID。