Имена участников (разделяйте запятой).
<?php include 'config.php'; include_once 'libs/Smarty.class.php'; $smarty = new Smarty(); $query = mysql_query("SELECT `id`,`name` FROM `news`")...