You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND mahasiswa.KodeReg=4 AND mahasiswa.Lulus= ORDER BY mahasiswa.nim' at line 6