params[ 'offerta_id' ] ) ? $this->params[ 'offerta_id' ] : NULL ); if(!$offerta){ $sql = "SELECT * FROM news_index AS i LEFT JOIN news_contents AS c on i.id = c.news_id WHERE lang = '" . $this->lang ."' ORDER BY myorder ASC "; $news = $this->db->query( $sql )->fetchAll(); foreach($news as $n){ ?> lang ."' AND i.id = " . $offerta . " ORDER BY myorder ASC "; $n = $this->db->query( $sql )->fetch(); ?>