Fatal error: Uncaught exception 'PDOException' with message 'There is already an active transaction' in /home/koriniar/ZF/Zend/Db/Adapter/Pdo/Abstract.php:142 Stack trace: #0 /home/koriniar/ZF/Zend/Db/Adapter/Pdo/Abstract.php(142): PDO->beginTransaction() #1 /home/koriniar/ZF/Zend/Db/Adapter/Abstract.php(174): Zend_Db_Adapter_Pdo_Abstract->_beginTransaction() #2 /home/koriniar/application/models/ImageGallery2.php(93): Zend_Db_Adapter_Abstract->beginTransaction() #3 /home/koriniar/application/controllers/RentalsController.php(337): ImageGallery->getImagesCount(123) #4 /home/koriniar/ZF/Zend/Controller/Action.php(118): RentalsController->detailsAction() #5 /home/koriniar/ZF/Zend/Controller/Dispatcher.php(185): Zend_Controller_Action->run(Object(Zend_Controller_Dispatcher), Object(Zend_Controller_Dispatcher_Token)) #6 /home/koriniar/ZF/Zend/Controller/Dispatcher.php(136): Zend_Controller_Dispatcher->_dispatch(Object(Zend_Controller_Dispatcher_Token), true) #7 /home/koriniar/ZF/Zend/Controller/Front.php(254): Zend_Controller_ in /home/koriniar/ZF/Zend/Db/Adapter/Pdo/Abstract.php on line 142