Codeigniter 错误号:1066活动记录代码点火器

Codeigniter 错误号:1066活动记录代码点火器,codeigniter,Codeigniter,我正在尝试使用codeigniter分页,我收到了以下消息: 错误号码:1066 非唯一表/别名:“albuns” 型号: 您已经选择了两次表albuns: function get_titles($per_pg, $offset) { $this->db->select('albuns.*', 'players.name', 'players.id AS artistid', FALSE); //$this->db->from('albuns');

我正在尝试使用codeigniter分页,我收到了以下消息:

错误号码:1066 非唯一表/别名:“albuns”

型号:


您已经选择了两次表albuns:

function get_titles($per_pg, $offset)
{   
    $this->db->select('albuns.*', 'players.name', 'players.id AS artistid', FALSE);
    //$this->db->from('albuns');
    $this->db->join('players', 'albuns.player_id = players.id', 'inner');
    $this->db->order_by('albuns.ano', 'asc');
    $query = $this->db->get('albuns', $per_pg, $offset);
    return $query->result();
}
希望能有帮助

function get_titles($per_pg, $offset)
{   
    $this->db->select('albuns.*', 'players.name', 'players.id AS artistid', FALSE);
    //$this->db->from('albuns');
    $this->db->join('players', 'albuns.player_id = players.id', 'inner');
    $this->db->order_by('albuns.ano', 'asc');
    $query = $this->db->get('albuns', $per_pg, $offset);
    return $query->result();
}