Thank you for helping. You did not address what I am looking for. Let me try to explain. We changed many forums from letting members post in them to not allowing them to post in them. I do not know the IDs of these forums. I mean I could find all of them, but there are many, and I am looking for only the ones that have posts in them. They are what I am looking for: the numbers (or names) of the forums that contain posts that members cannot post in.
Code:
SELECT forumid FROM forum WHERE threadcount > 0
AND allowed_to_post = 0
or something like that.