classes/BannerStatisticsHelper.php
protected function getCatID()
    {
        $objBannerCatID = \Database::getInstance()->prepare("SELECT 
                                                                MIN(pid) AS ID 
                                                             FROM 
                                                                tl_banner")
                                                  ->execute();
        $objBannerCatID->next();
        if ($objBannerCatID->ID === null)
        {
            return 0;
        }
        else
        {
            return $objBannerCatID->ID;
        }
    }
protected function getCatID()
    {
        $objBannerCatID = \Database::getInstance()->prepare("SELECT 
                                                                MIN(pid) AS ID 
                                                             FROM 
                                                                tl_banner")
                                                  ->execute();
        $objBannerCatID->next();
        if ($objBannerCatID->ID === null)
        {
            return 0;
        }
        else
        {
            return $objBannerCatID->ID;
        }
    }
protected function getCatID ( ) { $ objBannerCatID = \ Database :: getInstance ( ) -> prepare ( "SELECT 
                                                                MIN(pid) AS ID 
                                                             FROM 
                                                                tl_banner" ) -> execute ( ) ; $ objBannerCatID -> next ( ) ; if ( $ objBannerCatID -> ID === null ) { return 0 ; } else { return $ objBannerCatID -> ID ; } }
Get min category id

@deprecated
@return number    CatID    0|min(pid)
Get min category id