Tickets sind bis 24 Stunden vor Abflug erstattungsfähig

Fatal error: Uncaught PDOException: 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 ')) + IF(IF((IF( ((departure.is_salina = 0 AND departure.ticket = 1 AND arrival.t' at line 6 in /home/tarnav/library/Zend/Db/Statement/Pdo.php:228 Stack trace: #0 /home/tarnav/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) #1 /home/tarnav/library/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array) #2 /home/tarnav/library/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array) #3 /home/tarnav/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `sealine...', Array) #4 /home/tarnav/library/Zend/Db/Table/Abstract.php(1505): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select)) #5 /home/tarnav/library/Zend/Db/Table/Abstract.php(1367): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select)) #6 /home/tarnav in /home/tarnav/library/Zend/Db/Statement/Pdo.php on line 234