Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number: no parameters were bound' in /usr/share/php/Zend/Db/Statement/Pdo.php:228
Stack trace:
#0 /usr/share/php/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#1 /usr/share/php/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array)
#2 /usr/share/php/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /usr/share/php/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select), Array)
#4 /usr/share/php/Zend/Db/Select.php(686): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select))
#5 /var/www/web.modular.projectregistration/application/models/CustomerGateway.php(115): Zend_Db_Select->query()
#6 /var/www/web.modular.projectregistration/application/models/Customer.php(124): Modular_Model_CustomerGateway->getCustomerByEmail(NULL)
#7 /var/www/web.modular.projectregistration/application/views/scripts/sidebar.phtml(85): Modular_Model_Customer->getCurre in /usr/share/php/Zend/Controller/Plugin/Broker.php on line 336