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 '-2' at line 1
#0 [internal function]: PDOStatement->execute() #1 [internal function]: Phalcon\Db\Adapter\Pdo->executePrepared(Object(PDOStatement), Array, Array) #2 [internal function]: Phalcon\Db\Adapter\Pdo->query('SELECT `News`.`...', Array, Array) #3 [internal function]: Phalcon\Mvc\Model\Query->_executeSelect(Array, Array, Array) #4 [internal function]: Phalcon\Mvc\Model\Query->execute() #5 /home/vh6u16187/domains/mikrotik-trainings.com/private_html/app/models/News.php(119): Phalcon\Mvc\Model::find(Array) #6 /home/vh6u16187/domains/mikrotik-trainings.com/private_html/app/controllers/NewsController.php(55): News::find(Array) #7 [internal function]: NewsController->indexAction('blog-post.html') #8 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(NewsController), 'indexAction', Array) #9 [internal function]: Phalcon\Dispatcher->dispatch() #10 /home/vh6u16187/domains/mikrotik-trainings.com/private_html/public/index.php(138): Phalcon\Mvc\Application->handle() #11 {main}