You should NOT be using the category ID...
You need to view the database and use the
parentnode number- They aren't the same number as the categoryid but on my forum they seemed to follow (be unique) with the categoryid.
That is to say the categoryid might be 3 and the parentnode might be 5... categoryid 4 might have a parentnode of 7.
Make sure you are checking the parennode from the database.
If you want/need to pull from multiple parentnode numbers then change the line to:
Code:
WHERE
cn.parentnode IN (4,5,6)
That would be where parentnode = 4, 5, or 6.