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 MariaDB server version for the right syntax to use near '?) AND (p.id = ?)' at line 2 in /home/server321539/ftp/migracja/library/Zend/Db/Statement/Pdo.php:228
Stack trace:
#0 /home/server321539/ftp/migracja/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#1 /home/server321539/ftp/migracja/library/Zend/Db/Statement.php(323): Zend_Db_Statement_Pdo->_execute(Array)
#2 /home/server321539/ftp/migracja/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/server321539/ftp/migracja/library/Zend/Db/Adapter/Pdo/Abstract.php(254): Zend_Db_Adapter_Abstract->query('SELECT `p`.`id`...', Array)
#4 /home/server321539/ftp/migracja/library/Zend/Db/Adapter/Abstract.php(759): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select), Array)
#5 /home/server321539/ftp/migracja/application/modules/default/controllers/InwestycjaController.php(623): Zend_Db_Adapter_Abstract->fetchRow(Object(Zend_Db_Select))
#6 /home/server321539/ftp/migracja/library/Zend/Controller/Action.php(516): Default_InwestycjaController->mieszkanieAction()
#7 /home/server321539/ftp/migracja/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('mieszkanieActio...')
#8 /home/server321539/ftp/migracja/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#9 /home/server321539/ftp/migracja/library/Zend/Application/Bootstrap/Bootstrap.php(106): Zend_Controller_Front->dispatch()
#10 /home/server321539/ftp/migracja/library/Zend/Application.php(400): Zend_Application_Bootstrap_Bootstrap->run()
#11 /home/server321539/ftp/migracja/public/index.php(40): Zend_Application->run()
#12 {main}
Next Zend_Db_Statement_Exception: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?) AND (p.id = ?)' at line 2, query was: SELECT `p`.`id`, `p`.`id_inwest`, `p`.`numer`, `p`.`typ`, `pt`.`nazwa` AS `nazwapiero` FROM `inwestycje_pietro` AS `p`
INNER JOIN `inwestycje_pietro_tl` AS `pt` ON p.id = pt.id_pietro WHERE (p.id_inwest = '1') AND (p.numer = ?) AND (p.id = ?) in /home/server321539/ftp/migracja/library/Zend/Db/Statement/Pdo.php:235
Stack trace:
#0 /home/server321539/ftp/migracja/library/Zend/Db/Statement.php(323): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/server321539/ftp/migracja/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#2 /home/server321539/ftp/migracja/library/Zend/Db/Adapter/Pdo/Abstract.php(254): Zend_Db_Adapter_Abstract->query('SELECT `p`.`id`...', Array)
#3 /home/server321539/ftp/migracja/library/Zend/Db/Adapter/Abstract.php(759): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select), Array)
#4 /home/server321539/ftp/migracja/application/modules/default/controllers/InwestycjaController.php(623): Zend_Db_Adapter_Abstract->fetchRow(Object(Zend_Db_Select))
#5 /home/server321539/ftp/migracja/library/Zend/Controller/Action.php(516): Default_InwestycjaController->mieszkanieAction()
#6 /home/server321539/ftp/migracja/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('mieszkanieActio...')
#7 /home/server321539/ftp/migracja/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#8 /home/server321539/ftp/migracja/library/Zend/Application/Bootstrap/Bootstrap.php(106): Zend_Controller_Front->dispatch()
#9 /home/server321539/ftp/migracja/library/Zend/Application.php(400): Zend_Application_Bootstrap_Bootstrap->run()
#10 /home/server321539/ftp/migracja/public/index.php(40): Zend_Application->run()
#11 {main}
thrown in /home/server321539/ftp/migracja/library/Zend/Db/Statement/Pdo.php on line 235