getChildren
is not a static function, you call it off the category object that you get from get
, which should be of type JCategoryNode.
$catID = JRequest::getVar('id');
$categories = JCategories::getInstance('Content');
$cat = $categories->get($catID);
$children = $cat->getChildren();
print_r($children);