error number : 1064
hi ,
i have a problem about syntax 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`NULL` AND `semester`.`id_semester` = `absen`.`id_semester` AND `absen`.`id_seme' at line 4
SELECT `absen`.`id_absen`, `absen`.`tanggal`, `absen`.`absen`, `siswa`.`nis`, `siswa`.`nama`, `kelas`.`kelas` FROM `absen`, `siswa`, `kelas`, `semester` WHERE `siswa`.`id_kelas` = `kelas`.`id_kelas` AND `absen`.`nis` = `siswa`.`n IS NOT` `NULL` AND `semester`.`id_semester` = `absen`.`id_semester` AND `absen`.`id_semester` = '1' ORDER BY `absen`.`id_absen` DESC LIMIT 10
Filename: C:/xampp/htdocs/absensi2014/application/models/absen_model.php
Line Number: 34
please help me to fix it... Thanx
i have a problem about syntax 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`NULL` AND `semester`.`id_semester` = `absen`.`id_semester` AND `absen`.`id_seme' at line 4
SELECT `absen`.`id_absen`, `absen`.`tanggal`, `absen`.`absen`, `siswa`.`nis`, `siswa`.`nama`, `kelas`.`kelas` FROM `absen`, `siswa`, `kelas`, `semester` WHERE `siswa`.`id_kelas` = `kelas`.`id_kelas` AND `absen`.`nis` = `siswa`.`n IS NOT` `NULL` AND `semester`.`id_semester` = `absen`.`id_semester` AND `absen`.`id_semester` = '1' ORDER BY `absen`.`id_absen` DESC LIMIT 10
Filename: C:/xampp/htdocs/absensi2014/application/models/absen_model.php
Line Number: 34
please help me to fix it... Thanx