Loading child categories with flat categories enabled (Magento 1)

If flat categories are enabled in your Magento store, you need to load the child categories of a given category differently. The following code shows how:

Getting products from a category (Magento 1)

The following code returns all products from within a certain category in a collection.