public static function sqlBuildSelect($arrSelect, $addSelect = false)
    {
        $select = null;
        
        if (is_array($arrSelect))
        {
            foreach ($arrSelect as $f => $v)
            {
                if ($select)  $select .= ', ';
                if (preg_match('/^(.+?):(literal)$/i', $f, $arrMatch))
                    $select .= $v;
                else
                    $select .= self::getDSN()->escape($v);
            }
        }
        
        if ($addSelect && $select)
            $addSelect = ' SELECT ' . $addSelect;
        
        return $select;
    }