An error occurred

An error occurred during execution; please try again later.


Additional information:

Doctrine\DBAL\DBALException

File:
/home/v/visionhoteis/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:91
Message:
An exception occurred while executing 'SELECT * FROM hoteis h
                INNER JOIN hoteis_fotos f ON f.id_hotel = h.id AND f.ordem = (SELECT MIN(ordem) FROM hoteis_fotos WHERE id_hotel = h.id  )
                WHERE h.id = +55 (33) 3322-4088
                GROUP BY h.id
                ORDER BY h.nome ASC':

SQLSTATE[42000]: Syntax error or access violation: 1064 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 '(33) 3322-4088
                GROUP BY h.id
                ORDER BY h.nome ASC' at line 3
Stack trace:
#0 /home/v/visionhoteis/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(167): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(PDOException), 'SELECT * FROM h...', Array)
#1 /home/v/visionhoteis/www/module/Application/src/Application/Controller/AbstractController.php(34): Doctrine\DBAL\Statement->execute()
#2 /home/v/visionhoteis/www/module/Application/src/Application/Controller/HoteisController.php(74): Application\Controller\AbstractController->consulta('SELECT * FROM h...')
#3 /home/v/visionhoteis/www/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractActionController.php(83): Application\Controller\HoteisController->detalheAction()
#4 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#5 /home/v/visionhoteis/www/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#6 /home/v/visionhoteis/www/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#7 /home/v/visionhoteis/www/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractController.php(117): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 /home/v/visionhoteis/www/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#9 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#10 /home/v/visionhoteis/www/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#11 /home/v/visionhoteis/www/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /home/v/visionhoteis/www/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(309): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /home/v/visionhoteis/www/public/index.php(20): Zend\Mvc\Application->run()
#14 {main}

Previous exceptions: