Notice: Undefined index: codigo in /home/emunicipal/public_html/Application/Controllers/HomeController.php on line 112

Fatal error: Uncaught Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in /home/emunicipal/public_html/Domain/Context.php:55 Stack trace: #0 /home/emunicipal/public_html/Application/Controllers/HomeController.php(113): Esic\Domain\Context->query('SELECT * FROM I...') #1 /home/emunicipal/public_html/Application/Controllers/HomeController.php(37): Esic\Application\Controllers\HomeController->RecuperarInstituicao() #2 /home/emunicipal/public_html/Core/Route.php(79): Esic\Application\Controllers\HomeController->Portal(NULL) #3 /home/emunicipal/public_html/Application/bootstrap.php(21): Esic\Core\Route::Start(Object(Esic\Domain\IoC\Container)) #4 /home/emunicipal/public_html/index.php(19): require_once('/home/emunicipa...') #5 {main} thrown in /home/emunicipal/public_html/Domain/Context.php on line 55