An exception occured while bootstrapping the application.

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 ') AND (active = 1)' at line 1
Stack Trace:
#0 /hp/ab/ad/lo/www/CaravanProfi/Library/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array)
#1 /hp/ab/ad/lo/www/CaravanProfi/Library/Zend/Db/Adapter/Abstract.php(433): Zend_Db_Statement->execute(Array)
#2 /hp/ab/ad/lo/www/CaravanProfi/Library/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select), Array)
#3 /hp/ab/ad/lo/www/CaravanProfi/Library/Zend/Db/Adapter/Abstract.php(644): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select), Array)
#4 /hp/ab/ad/lo/www/CaravanProfi/application/Client/Models/Firm.php(53): Zend_Db_Adapter_Abstract->fetchAll(Object(Zend_Db_Select))
#5 /hp/ab/ad/lo/www/CaravanProfi/application/Client/bootstrap.php(36): Models_Firm->prepareFirmData('caravanprofi.eu')
#6 /hp/ab/ad/lo/www/CaravanProfi/public/index.php(5): require('/hp/ab/ad/lo/ww...')
#7 {main}