Syntax error, unexpected token ), near to ') AND (JPJornal\Models\Noticia.exibir = 1) ORDER BY UNIX_TIMESTAMP(JPJornal\Models\NoticiaVersao.data_inicio)+(2882 * JPJornal\Models\Noticia.importancia) DESC LIMIT :APL0:', when parsing: SELECT [JPJornal\Models\Noticia].* FROM [JPJornal\Models\Noticia] LEFT JOIN [JPJornal\Models\NoticiaVersao] ON JPJornal\Models\Noticia.id = JPJornal\Models\NoticiaVersao.noticia_id LEFT JOIN [JPJornal\Models\Editoria] ON JPJornal\Models\Editoria.id = JPJornal\Models\Noticia.editoria_id WHERE ((((((JPJornal\Models\Noticia.guid_agenciaestado is null) AND (JPJornal\Models\Noticia.guid_folhapress is null)) AND (JPJornal\Models\Noticia.editoria_id = 51)) AND (JPJornal\Models\Noticia.publicada = 1)) AND (JPJornal\Models\Noticia.exibir = 1)) AND (JPJornal\Models\Noticia.id != )) AND (JPJornal\Models\Noticia.exibir = 1) ORDER BY UNIX_TIMESTAMP(JPJornal\Models\NoticiaVersao.data_inicio)+(2882 * JPJornal\Models\Noticia.importancia) DESC LIMIT :APL0: (749)
#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 /home/webuser/www/novojp/app/models/Noticia.php(208): Phalcon\Mvc\Model\Query->execute()
#2 /home/webuser/www/novojp/app/controllers/FrontendController.php(718): JPJornal\Models\Noticia::buscarNoticiaPagina(Array)
#3 [internal function]: JPJornal\Controllers\FrontendController->noticiaAction('editorial', '2017', '03', 'www.faceres.com...')
#4 [internal function]: Phalcon\Dispatcher->dispatch()
#5 /home/webuser/www/novojp/public/index.php(51): Phalcon\Mvc\Application->handle()
#6 /home/webuser/www/novojp/public/index.php(46): main(Object(Phalcon\Di\FactoryDefault))
#7 {main}