'{$today}' - INTERVAL 1 YEAR ORDER BY date DESC"); $ret = array(); while ($item = mysql_fetch_assoc($result)) { $ret[] = $item; } DEBUG($ret); return $ret; } function get_news_item($id) { $id = (int) $id; $result = db_query("SELECT date, subject, content FROM misc.news WHERE id={$id}"); $ret = mysql_fetch_assoc($result); DEBUG($ret); return $ret; }