Notice: Undefined property: stdClass::$offset in /home/ocamera/application/Controller/indexController.php on line 264

Fatal error: Uncaught exception 'Doctrine_Query_Exception' with message 'Cannot define NULL as part of query when defining 'offset'.' in /home/ocamera/library/Doctrine/Query/Abstract.php:2047 Stack trace: #0 /home/ocamera/library/Doctrine/Query/Abstract.php(1763): Doctrine_Query_Abstract->_addDqlQueryPart('offset', NULL) #1 /home/ocamera/application/Controller/indexController.php(266): Doctrine_Query_Abstract->offset(NULL) #2 /home/ocamera/library/controller/abstract.php(70): indexController->mais_postsAction() #3 /home/ocamera/library/router.php(26): controller_abstract->load(Array) #4 /home/ocamera/bootstrap.php(99): router->load() #5 /home/ocamera/public_html/index.php(4): include('/home/ocamera/b...') #6 {main} thrown in /home/ocamera/library/Doctrine/Query/Abstract.php on line 2047