Hello,
I'm working on a custom made forum and was wondering if I could get some others ideas and opinions on the matter.
I was wondering what would be the most efficient MySQL query to achieve the following.
- Find all Categories. These will list their parent forum_id as "0".
- Find all Forums. These will list their parent forum_id as the categories ID.
- Find all Sub-Forums. These will list their parent forum_id as the forums ID.
- Find the total number of Posts for each forum (including their sub-forums).
- Find the total number of Threads for each forum (including their sub-forums).
- Find the last post information (time, thread, poster) for the Forum (including their sub-forums).
Is this possible?