https://www.php-resource.de/forum/php-developer-forum/50848-nested-sets