exception 'Doctrine_Connection_Exception' with message 'PDO Connection Error: SQLSTATE[08004] [1040] Too many connections' in /var/www/pentian/lib/vendor/doctrine/lib/Doctrine/Connection.php:474
Stack trace:
#0 /var/www/pentian/lib/vendor/doctrine/lib/Doctrine/Connection/Mysql.php(101): Doctrine_Connection->connect()
#1 /var/www/pentian/lib/vendor/doctrine/lib/Doctrine/Connection.php(1001): Doctrine_Connection_Mysql->connect()
#2 /var/www/pentian/lib/vendor/doctrine/lib/Doctrine/Query/Abstract.php(983): Doctrine_Connection->execute('SELECT b.id AS ...', Array)
#3 /var/www/pentian/lib/vendor/doctrine/lib/Doctrine/Query/Abstract.php(1033): Doctrine_Query_Abstract->_execute(Array)
#4 /var/www/pentian/lib/vendor/doctrine/lib/Doctrine/Query.php(281): Doctrine_Query_Abstract->execute(Array, NULL)
#5 /var/www/pentian/app/models/BookTable.php(472): Doctrine_Query->fetchOne()
#6 /var/www/pentian/app/controllers/BookController.php(870): BookTable->getById('3899', true, true)
#7 [internal function]: BookController->fund('3899')
#8 /var/www/pentian/lib/dispatcher/Dispatcher.php(95): call_user_func_array(Array, Array)
#9 /var/www/pentian/index.php(5): dispatcher\Dispatcher->run()
#10 {main}