Error in SQL
SELECT * FROM department WHERE active=1
in index.php at line 28