我有函数模型,我使用了 codeigniter 版本 2.1.3
function get_last_ten_absen($limit, $offset) {
$this->db->select('absen.id_absen, absen.tanggal, absen.nis, siswa.nama, kelas.kelas, absen.absen');
$this->db->from('absen, siswa, kelas, semester');
$this->db->where('siswa.id_kelas=kelas.id_kelas');
$this->db->where('absen.nis=siswa.nis');
$this->db->where('semester.id_semester=absen.id_semester');
$this->db->order_by('absen.tanggal', 'desc');
$this->db->limit($limit, $offset);
return $this->db->get();
}
我收到错误
A Database Error Occurred
Error Number: 1054
Unknown column 'siswa.id_kelas=kelas.id_kelas' in 'where clause'
请帮我。