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 `ordem` ASC' at line 1, query was: SELECT `site_galerias`.`titulo`, `site_galerias`.`conteudo`, `site_galerias`.`imagem` FROM `site_galerias` WHERE (ativo = 1 AND pagina = ) ORDER BY `ordem` ASC

Arquivo /home/planospi/library/Zend/Db/Statement/Pdo.php, linha 235

Trace #0 /home/planospi/library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array) #1 /home/planospi/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array) #2 /home/planospi/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select), Array) #3 /home/planospi/library/Zend/Db/Table/Abstract.php(1575): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select)) #4 /home/planospi/library/Zend/Db/Table/Abstract.php(1390): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select)) #5 /home/planospi/application/models/GaleriaModel.php(16): Zend_Db_Table_Abstract->fetchAll(Object(Zend_Db_Table_Select)) #6 /home/planospi/application/controllers/IndexController.php(193): GaleriaModel->listaGaleria(NULL) #7 /home/planospi/library/Zend/Controller/Action.php(516): IndexController->indexAction() #8 /home/planospi/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction') #9 /home/planospi/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #10 /home/planospi/library/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch() #11 /home/planospi/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #12 /home/planospi/public_html/index.php(32): Zend_Application->run() #13 {main}