GetValueByName('news_limit'); $query = "SELECT * FROM ".NEWS_TABLE." WHERE news_enabled = 'y' ORDER BY news_date DESC LIMIT $limit"; $db = new db_class($query); $output = $db->Result2Array(); return $output; } ?>