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 '?) ORDER BY `sort` ASC' at line 1 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 `galeria...', Array) #4 /home/server321539/ftp/migracja/library/Zend/Db/Adapter/Abstract.php(739): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select), Array) #5 /home/server321539/ftp/migracja/application/modules/default/controllers/GaleriaController.php(78): Zend_Db_Adapter_Abstract->fetchAll(Object(Zend_Db_Select)) #6 /home/server321539/ftp/migracja/library/Zend/Controller/Action.php(516): Default_GaleriaController->galeriaAction() #7 /home/server321539/ftp/migracja/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('galeriaAction') #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 '?) ORDER BY `sort` ASC' at line 1, query was: SELECT `galeria_zdjecia`.* FROM `galeria_zdjecia` WHERE (id_gal =?) ORDER BY `sort` ASC 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 `galeria...', Array) #3 /home/server321539/ftp/migracja/library/Zend/Db/Adapter/Abstract.php(739): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select), Array) #4 /home/server321539/ftp/migracja/application/modules/default/controllers/GaleriaController.php(78): Zend_Db_Adapter_Abstract->fetchAll(Object(Zend_Db_Select)) #5 /home/server321539/ftp/migracja/library/Zend/Controller/Action.php(516): Default_GaleriaController->galeriaAction() #6 /home/server321539/ftp/migracja/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('galeriaAction') #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