Array ( [data] => 2021-10-30 17:59:22 [mensagem] => 500: Erro interno [trace] => 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 'status = 1) ORDER BY `data` DESC' at line 1, query was: SELECT `blog`.* FROM `blog` WHERE (data <= '2021-10-30' status = 1) ORDER BY `data` DESC #0 C:\wamp64\www\lubnord\vendor\zendframework\zendframework1\library\Zend\Db\Statement.php(323): Zend_Db_Statement_Pdo->_execute(Array) #1 C:\wamp64\www\lubnord\vendor\zendframework\zendframework1\library\Zend\Db\Adapter\Abstract.php(480): Zend_Db_Statement->execute(Array) #2 C:\wamp64\www\lubnord\vendor\zendframework\zendframework1\library\Zend\Db\Adapter\Pdo\Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select), Array) #3 C:\wamp64\www\lubnord\vendor\zendframework\zendframework1\library\Zend\Db\Table\Abstract.php(1577): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select)) #4 C:\wamp64\www\lubnord\vendor\zendframework\zendframework1\library\Zend\Db\Table\Abstract.php(1392): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select)) #5 C:\wamp64\www\lubnord\application\modules\site\controllers\NovidadesController.php(15): Zend_Db_Table_Abstract->fetchAll('data <= '2021-1...', 'data DESC') #6 C:\wamp64\www\lubnord\vendor\zendframework\zendframework1\library\Zend\Controller\Action.php(516): NovidadesController->indexAction() #7 C:\wamp64\www\lubnord\vendor\zendframework\zendframework1\library\Zend\Controller\Dispatcher\Standard.php(308): Zend_Controller_Action->dispatch('indexAction') #8 C:\wamp64\www\lubnord\vendor\zendframework\zendframework1\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #9 C:\wamp64\www\lubnord\vendor\zendframework\zendframework1\library\Zend\Application\Bootstrap\Bootstrap.php(105): Zend_Controller_Front->dispatch() #10 C:\wamp64\www\lubnord\vendor\zendframework\zendframework1\library\Zend\Application.php(384): Zend_Application_Bootstrap_Bootstrap->run() #11 C:\wamp64\www\lubnord\index.php(47): Zend_Application->run() #12 {main} Zend_Controller_Request_Http Object ( [_paramSources:protected] => Array ( [0] => _GET [1] => _POST ) [_requestUri:protected] => /lubnord/novidades [_baseUrl:protected] => http://localhost/lubnord [_basePath:protected] => [_pathInfo:protected] => /novidades [_params:protected] => Array ( [module] => site [controller] => novidades [action] => index ) [_rawBody:protected] => [_aliases:protected] => Array ( ) [_dispatched:protected] => 1 [_module:protected] => site [_moduleKey:protected] => module [_controller:protected] => novidades [_controllerKey:protected] => controller [_action:protected] => index [_actionKey:protected] => action ) [parameters] => {"module":"site","controller":"novidades","action":"index","error_handler":{"exception":{"xdebug_message":"