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: