ERROR - 2026-07-17 08:11:43 --> You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARA...' at line 6
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Controller.php(53): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
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-17 08:11:43 --> CodeIgniter\Database\Exceptions\DatabaseException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARA...' at line 6
[Method: GET, Route: class]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Controller.php(53): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
 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-17 08:11:43 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARA...' at line 6
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Controller.php(53): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
 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-17 08:11:43 --> [Caused by] mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARA...' at line 6
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Controller.php(53): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
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-17 08:11:44 --> You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARA...' at line 6
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Controller.php(53): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
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-17 08:11:44 --> CodeIgniter\Database\Exceptions\DatabaseException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARA...' at line 6
[Method: GET, Route: class]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Controller.php(53): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
 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-17 08:11:44 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARA...' at line 6
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Controller.php(53): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
 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-17 08:11:44 --> [Caused by] mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARA...' at line 6
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names
        GROUP_CONCAT(
    class_day.day_id 
    ORDER BY class_day.day_id 
    SEPARATOR \', \'
) AS class_days
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Controller.php(53): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
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-17 08:13:30 --> You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_typ...' at line 6
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Controller.php(49): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
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-17 08:13:30 --> CodeIgniter\Database\Exceptions\DatabaseException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_typ...' at line 6
[Method: GET, Route: class]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Controller.php(49): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
 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-17 08:13:30 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_typ...' at line 6
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Controller.php(49): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
 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-17 08:13:30 --> [Caused by] mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_typ...' at line 6
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN (1,2)
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT class.*,
        class_type.name AS class_type_name,
        grade.name AS grade_name,
        payment_type.name AS payment_type_name,
        GROUP_CONCAT(CONCAT(student.first_name, \' \', student.last_name, \' (\', class_student.fee , \')\') ORDER BY student.first_name SEPARATOR \', \') AS student_names,
FROM `class`
LEFT JOIN `class_type` ON `class_type`.`id` = `class`.`class_type_id`
LEFT JOIN `grade` ON `grade`.`id` = `class`.`grade_id`
LEFT JOIN `payment_type` ON `payment_type`.`id` = `class`.`payment_type_id`
LEFT JOIN `class_student` ON `class_student`.`class_id` = `class`.`id`
LEFT JOIN `class_day` ON `class_day`.`class_id` = `class`.`id`
LEFT JOIN `student` ON `student`.`id` = `class_student`.`student_id`
WHERE `class`.`status` IN :class.status:
GROUP BY `class`.`id`
ORDER BY `class`.`created_datetime` DESC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Controller.php(49): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
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-17 08:13:34 --> ErrorException: Undefined array key "class_days"
[Method: GET, Route: class]
in APPPATH\Views\class.php on line 253.
 1 APPPATH\Views\class.php(253): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_days"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\class.php', 253)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\class.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('class', [], true)
 5 APPPATH\Controllers\Class_Controller.php(54): view('class', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
 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-17 08:13:35 --> ErrorException: Undefined array key "class_days"
[Method: GET, Route: class]
in APPPATH\Views\class.php on line 253.
 1 APPPATH\Views\class.php(253): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array key "class_days"', 'C:\\xampp\\htdocs\\classmaster\\app\\Views\\class.php', 253)
 2 SYSTEMPATH\View\View.php(240): include('C:\\xampp\\htdocs\\classmaster\\app\\Views\\class.php')
 3 SYSTEMPATH\View\View.php(243): CodeIgniter\View\View->CodeIgniter\View\{closure}()
 4 SYSTEMPATH\Common.php(1268): CodeIgniter\View\View->render('class', [], true)
 5 APPPATH\Controllers\Class_Controller.php(54): view('class', [...])
 6 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Controller->index()
 7 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Controller))
 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-17 08:50:28 --> Error: Class "App\Controllers\ClassDayModel" not found
[Method: GET, Route: classdiary/getClassDayByClassId/7]
in APPPATH\Controllers\Class_Diary.php on line 166.
 1 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('7')
 2 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 3 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 4 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 5 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
 6 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-17 08:50:31 --> Error: Class "App\Controllers\ClassDayModel" not found
[Method: GET, Route: classdiary/getClassDayByClassId/5]
in APPPATH\Controllers\Class_Diary.php on line 166.
 1 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 2 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 3 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 4 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 5 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
 6 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-17 08:53:48 --> Error: Class "App\Controllers\ClassDayModel" not found
[Method: GET, Route: classdiary/getClassDayByClassId/7]
in APPPATH\Controllers\Class_Diary.php on line 166.
 1 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('7')
 2 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 3 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 4 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 5 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
 6 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-17 08:53:54 --> Error: Class "App\Controllers\ClassDayModel" not found
[Method: GET, Route: classdiary/getClassDayByClassId/4]
in APPPATH\Controllers\Class_Diary.php on line 166.
 1 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('4')
 2 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 3 SYSTEMPATH\CodeIgniter.php(363): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
 4 SYSTEMPATH\Boot.php(417): CodeIgniter\CodeIgniter->run()
 5 SYSTEMPATH\Boot.php(68): CodeIgniter\Boot::runCodeIgniter(Object(CodeIgniter\CodeIgniter))
 6 FCPATH\index.php(59): CodeIgniter\Boot::bootWeb(Object(Config\Paths))
CRITICAL - 2026-07-17 08:55:42 --> ErrorException: Undefined variable $classDayModel
[Method: GET, Route: classdiary/getClassDayByClassId/6]
in APPPATH\Controllers\Class_Diary.php on line 170.
 1 APPPATH\Controllers\Class_Diary.php(170): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined variable $classDayModel', 'C:\\xampp\\htdocs\\classmaster\\app\\Controllers\\Class_Diary.php', 170)
 2 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 3 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:55:46 --> ErrorException: Undefined variable $classDayModel
[Method: GET, Route: classdiary/getClassDayByClassId/5]
in APPPATH\Controllers\Class_Diary.php on line 170.
 1 APPPATH\Controllers\Class_Diary.php(170): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined variable $classDayModel', 'C:\\xampp\\htdocs\\classmaster\\app\\Controllers\\Class_Diary.php', 170)
 2 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 3 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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))
ERROR - 2026-07-17 08:56:13 --> Unknown table 'classmaster.class_day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:56:13 --> CodeIgniter\Database\Exceptions\DatabaseException: Unknown table 'classmaster.class_day'
[Method: GET, Route: classdiary/getClassDayByClassId/6]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:13 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Unknown table 'classmaster.class_day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:13 --> [Caused by] mysqli_sql_exception: Unknown table 'classmaster.class_day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:56:16 --> Unknown table 'classmaster.class_day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:56:16 --> CodeIgniter\Database\Exceptions\DatabaseException: Unknown table 'classmaster.class_day'
[Method: GET, Route: classdiary/getClassDayByClassId/5]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:16 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Unknown table 'classmaster.class_day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:16 --> [Caused by] mysqli_sql_exception: Unknown table 'classmaster.class_day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `grade`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:56:41 --> Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:56:41 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
[Method: GET, Route: classdiary/getClassDayByClassId/6]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:41 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:41 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:56:43 --> Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:56:43 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
[Method: GET, Route: classdiary/getClassDayByClassId/5]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:43 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:43 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:56:46 --> Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:56:46 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
[Method: GET, Route: classdiary/getClassDayByClassId/6]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:46 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:46 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:56:49 --> Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('4')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:56:49 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
[Method: GET, Route: classdiary/getClassDayByClassId/4]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('4')
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:49 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('4')
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:56:49 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('4')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:58:14 --> Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:58:14 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
[Method: GET, Route: classdiary/getClassDayByClassId/6]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:58:14 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:58:14 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:59:06 --> Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:59:06 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
[Method: GET, Route: classdiary/getClassDayByClassId/5]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:59:06 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:59:06 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'5\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('5')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:59:15 --> Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:59:15 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
[Method: GET, Route: classdiary/getClassDayByClassId/6]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:59:15 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:59:15 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'6\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:59:17 --> Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('4')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:59:17 --> CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
[Method: GET, Route: classdiary/getClassDayByClassId/4]
in SYSTEMPATH\Database\BaseConnection.php on line 863.
 1 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 2 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 3 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 4 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 5 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('4')
 6 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:59:17 --> [Caused by] CodeIgniter\Database\Exceptions\DatabaseException: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 310.
 1 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 2 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 4 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 5 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 6 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 7 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('4')
 8 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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-17 08:59:17 --> [Caused by] mysqli_sql_exception: Not unique table/alias: 'day'
in SYSTEMPATH\Database\MySQLi\Connection.php on line 300.
 1 SYSTEMPATH\Database\MySQLi\Connection.php(300): mysqli->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC', 0)
 2 SYSTEMPATH\Database\BaseConnection.php(908): CodeIgniter\Database\MySQLi\Connection->execute('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 3 SYSTEMPATH\Database\BaseConnection.php(825): CodeIgniter\Database\BaseConnection->simpleQuery('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = \'4\'
AND `class_day`.`status` = 1
ORDER BY `class_day`.`day_id` ASC')
 4 SYSTEMPATH\Database\BaseBuilder.php(1659): CodeIgniter\Database\BaseConnection->query('SELECT `class_day`.*, `day`.`name` AS `day_name`
FROM `day`
LEFT JOIN `day` ON `day`.`id` = `class_day`.`day_id`
WHERE `class_day`.`class_id` = :class_day.class_id:
AND `class_day`.`status` = :class_day.status:
ORDER BY `class_day`.`day_id` ASC', [...], false)
 5 SYSTEMPATH\Model.php(255): CodeIgniter\Database\BaseBuilder->get()
 6 SYSTEMPATH\BaseModel.php(676): CodeIgniter\Model->doFindAll(0, 0)
 7 APPPATH\Controllers\Class_Diary.php(178): CodeIgniter\BaseModel->findAll()
 8 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('4')
 9 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
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-17 08:59:46 --> ErrorException: Undefined variable $classDayModel
[Method: GET, Route: classdiary/getClassDayByClassId/6]
in APPPATH\Controllers\Class_Diary.php on line 170.
 1 APPPATH\Controllers\Class_Diary.php(170): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined variable $classDayModel', 'C:\\xampp\\htdocs\\classmaster\\app\\Controllers\\Class_Diary.php', 170)
 2 SYSTEMPATH\CodeIgniter.php(974): App\Controllers\Class_Diary->getClassDayByClassId('6')
 3 SYSTEMPATH\CodeIgniter.php(520): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Class_Diary))
 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))
