现在的结果是它显示同一个帖子的次数是它所拥有的照片的次数。什么限制查看相同新闻的时间?
function get_all_news(){
$query = $this->db->select('news.*, news_photos.name as news_photo_name, news_photos.ext as news_photo_ext')->from('news')->join('news_photos', 'news.id = news_photos.id_news', 'left')->order_by("date", "desc")->get();
}