[2026-06-30 23:52:30] [error] [Logger.php:160] [IP:::1] [USER:1] Route dispatch failed: GET /loans/37: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'loan_id' in 'where clause' in C:\xampp\htdocs\ai_admin\app\Models\Database.php:108
#0 C:\xampp\htdocs\ai_admin\app\Models\Database.php(108): PDO->prepare('SELECT * FROM c...')
#1 C:\xampp\htdocs\ai_admin\views\loans\show.php(72): Database->query('SELECT * FROM c...', Array)
#2 C:\xampp\htdocs\ai_admin\app\Helpers\helpers.php(773): require('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\ai_admin\app\Controllers\LoanController.php(343): view('loans/show', Array)
#4 C:\xampp\htdocs\ai_admin\app\Core\Router.php(54): LoanController->show('37')
#5 C:\xampp\htdocs\ai_admin\app\Core\Router.php(35): Router->callAction('LoanController', 'show', Array)
#6 C:\xampp\htdocs\ai_admin\public\index.php(292): Router->dispatch('GET', '/loans/37')
#7 {main}
[2026-06-30 23:52:32] [error] [Logger.php:160] [IP:::1] [USER:1] Route dispatch failed: GET /loans/37: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'loan_id' in 'where clause' in C:\xampp\htdocs\ai_admin\app\Models\Database.php:108
#0 C:\xampp\htdocs\ai_admin\app\Models\Database.php(108): PDO->prepare('SELECT * FROM c...')
#1 C:\xampp\htdocs\ai_admin\views\loans\show.php(72): Database->query('SELECT * FROM c...', Array)
#2 C:\xampp\htdocs\ai_admin\app\Helpers\helpers.php(773): require('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\ai_admin\app\Controllers\LoanController.php(343): view('loans/show', Array)
#4 C:\xampp\htdocs\ai_admin\app\Core\Router.php(54): LoanController->show('37')
#5 C:\xampp\htdocs\ai_admin\app\Core\Router.php(35): Router->callAction('LoanController', 'show', Array)
#6 C:\xampp\htdocs\ai_admin\public\index.php(292): Router->dispatch('GET', '/loans/37')
#7 {main}
