SQLException not captured

File: /home/zedplan/www/de-post-venta/opencorephp/branches/1.6/packages/db/mysql/MysqlConnection.php
Line: 115
Message: Error executing query: 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 '.ar' at line 5
Trace: #0 /home/zedplan/www/de-post-venta/trunk/application/models/propel/build/classes/depostventa/Companies.php(77): MysqlConnection->query('SELECT comp_id,...') #1 /home/zedplan/www/de-post-venta/trunk/application/controllers/CompaniesController.php(70): Companies::getCompaniesCoordinates('llantasriocuart...') #2 [internal function]: CompaniesController->profileAction('llantasriocuart...') #3 /home/zedplan/www/de-post-venta/opencorephp/branches/1.6/packages/core/Router.php(494): call_user_func_array(Array, Array) #4 /home/zedplan/www/de-post-venta/trunk/public/index.php(28): Router->dispatch() #5 {main}
Object ยป