rDrama/migrations/20230226-search-modmail.sql

2 lines
210 B
MySQL
Raw Normal View History

select id from comments where parent_submission is null and sentto is null and (top_comment_id in (select id from comments where sentto = 2) or parent_comment_id in (select id from comments where sentto = 2));