ERROR - 2026-07-16 06:58:18 --> Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
10 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
11 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
12 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
13 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:58:18 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'class_status'
[Method: GET, Route: studentreport]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 7 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 8 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 9 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
10 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:58:18 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 9 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
10 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
11 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
12 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:58:18 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
10 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
11 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
12 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
13 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
ERROR - 2026-07-16 06:59:16 --> Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
10 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
11 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
12 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
13 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:59:16 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'class_status'
[Method: GET, Route: studentreport]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 7 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 8 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 9 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
10 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:59:16 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 9 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
10 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
11 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
12 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:59:16 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
10 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
11 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
12 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
13 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
ERROR - 2026-07-16 06:59:17 --> Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
10 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
11 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
12 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
13 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:59:17 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'class_status'
[Method: GET, Route: studentreport]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 7 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 8 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 9 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
10 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:59:17 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 9 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
10 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
11 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
12 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:59:17 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
10 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
11 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
12 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
13 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
ERROR - 2026-07-16 06:59:18 --> Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
10 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
11 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
12 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
13 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:59:18 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'class_status'
[Method: GET, Route: studentreport]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 7 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 8 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 9 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
10 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:59:18 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 9 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
10 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
11 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
12 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:59:18 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'class_status'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = 1
AND `class_attendance`.`attendance_status` = 1
ORDER BY `class_diary`.`date` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_diary`.*, `class`.`name` AS `class_name`, `class`.`code` AS `class_code`, `grade`.`name` AS `grade_name`, `lesson`.`name` AS `lesson_name`, `lesson`.`code` AS `lesson_code`, `class_status`.`name` AS `class_status_name`, `student`.`id` AS `student_id`, `student`.`first_name`, `student`.`last_name`, `class_attendance`.`comment` AS `attendance_comment`, `class_attendance`.`attendance_status`, `class_attendance`.`duration`, `class_status`.`name` AS `class_status_name`, `class_status`.`id` AS `class_status_id`
FROM `class_diary`
LEFT JOIN `class` ON `class`.`id` = `class_diary`.`class_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
LEFT JOIN `lesson` ON `lesson`.`id` = `class_diary`.`lesson_id`
LEFT JOIN `class_attendance` ON `class_attendance`.`class_diary_id` = `class_diary`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_attendance`.`student_id`
LEFT JOIN `class_status` ON `class_status`.`id` = `class_diary`.`class_status_id`
WHERE `class_diary`.`status` = :class_diary.status:
AND `class_attendance`.`attendance_status` = :class_attendance.attendance_status:
ORDER BY `class_diary`.`date` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Report_Student_History.php(62): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
10 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
11 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
12 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
13 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 06:59:40 --> ErrorException: Undefined array key "started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(129): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:00:20 --> ErrorException: Undefined array key "class_diary.started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_diary.started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(129): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:00:32 --> ErrorException: Undefined array key "started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(129): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:00:33 --> ErrorException: Undefined array key "started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(129): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:01:04 --> ErrorException: Undefined array key "class_diary.started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_diary.started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(129): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:01:05 --> ErrorException: Undefined array key "class_diary.started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_diary.started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(129): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:01:05 --> ErrorException: Undefined array key "class_diary.started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_diary.started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(129): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:01:42 --> ErrorException: Undefined array key "class_status_name"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_status_name"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(129): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:01:43 --> ErrorException: Undefined array key "class_status_name"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_status_name"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(129): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:01:44 --> ErrorException: Undefined array key "class_status_name"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_status_name"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(129): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:02:02 --> ErrorException: Undefined array key "class_diary.started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_diary.started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(129): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:02:28 --> ErrorException: Undefined array key "class_diary.started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_diary.started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(128): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:02:42 --> ErrorException: Undefined array key "class_status_name"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_status_name"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(128): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:02:49 --> ErrorException: Undefined array key "class_status_name"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_status_name"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(128): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:02:49 --> ErrorException: Undefined array key "class_status_name"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_status_name"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(128): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:02:54 --> ErrorException: Undefined array key "class_diary.started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_diary.started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(128): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:04:32 --> ErrorException: Undefined array key "started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(130): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:07:24 --> ErrorException: Undefined array key "id"
[Method: GET, Route: studentreport]
in APPPATH\Controllers\Report_Student_History.php on line 69.
 1 APPPATH\Controllers\Report_Student_History.php(69): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "id"', 'C:\\xampp\\htdocs\\classmaster\\app\\Controllers\\Report_Student_History.php', 69)
 2 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 3 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 4 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 5 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 6 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
 7 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:07:27 --> ErrorException: Undefined array key "id"
[Method: GET, Route: studentreport]
in APPPATH\Controllers\Report_Student_History.php on line 69.
 1 APPPATH\Controllers\Report_Student_History.php(69): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "id"', 'C:\\xampp\\htdocs\\classmaster\\app\\Controllers\\Report_Student_History.php', 69)
 2 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 3 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 4 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 5 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 6 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
 7 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:07:28 --> ErrorException: Undefined array key "id"
[Method: GET, Route: studentreport]
in APPPATH\Controllers\Report_Student_History.php on line 69.
 1 APPPATH\Controllers\Report_Student_History.php(69): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "id"', 'C:\\xampp\\htdocs\\classmaster\\app\\Controllers\\Report_Student_History.php', 69)
 2 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 3 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 4 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 5 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 6 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
 7 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:07:40 --> ErrorException: Undefined array key "id"
[Method: GET, Route: studentreport]
in APPPATH\Controllers\Report_Student_History.php on line 69.
 1 APPPATH\Controllers\Report_Student_History.php(69): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "id"', 'C:\\xampp\\htdocs\\classmaster\\app\\Controllers\\Report_Student_History.php', 69)
 2 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 3 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 4 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 5 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 6 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
 7 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:07:41 --> ErrorException: Undefined array key "id"
[Method: GET, Route: studentreport]
in APPPATH\Controllers\Report_Student_History.php on line 69.
 1 APPPATH\Controllers\Report_Student_History.php(69): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "id"', 'C:\\xampp\\htdocs\\classmaster\\app\\Controllers\\Report_Student_History.php', 69)
 2 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 3 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 4 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 5 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 6 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
 7 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:07:45 --> ErrorException: Undefined array key "id"
[Method: GET, Route: studentreport]
in APPPATH\Controllers\Report_Student_History.php on line 69.
 1 APPPATH\Controllers\Report_Student_History.php(69): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "id"', 'C:\\xampp\\htdocs\\classmaster\\app\\Controllers\\Report_Student_History.php', 69)
 2 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 3 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 4 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 5 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 6 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
 7 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:07:46 --> ErrorException: Undefined array key "id"
[Method: GET, Route: studentreport]
in APPPATH\Controllers\Report_Student_History.php on line 69.
 1 APPPATH\Controllers\Report_Student_History.php(69): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "id"', 'C:\\xampp\\htdocs\\classmaster\\app\\Controllers\\Report_Student_History.php', 69)
 2 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 3 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 4 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 5 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 6 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
 7 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:07:59 --> ErrorException: Undefined array key "started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(130): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:08:15 --> ErrorException: Undefined array key "started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(130): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:09:10 --> ErrorException: Undefined array key "started_time"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "started_time"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(130): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:11:23 --> ErrorException: Undefined array key "class_status_name"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_status_name"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(139): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:11:25 --> ErrorException: Undefined array key "class_status_name"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 115.
 1 APPPATH\Views\report_student_history.php(115): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_status_name"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 115)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(139): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:20:22 --> ErrorException: Undefined array key "student_first_name"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 134.
 1 APPPATH\Views\report_student_history.php(134): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "student_first_name"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 134)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(150): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-16 07:20:55 --> ErrorException: Undefined array key "name"
[Method: GET, Route: studentreport]
in APPPATH\Views\report_student_history.php on line 134.
 1 APPPATH\Views\report_student_history.php(134): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "name"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php', 134)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\report_student_history.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('report_student_history', [], true)
 5 APPPATH\Controllers\Report_Student_History.php(150): view('report_student_history', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Report_Student_History->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Report_Student_History))
 8 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 9 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
10 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
11 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
