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 'ORDER BY blogs.id ASC' at line 1
#0 [internal function]: PDOStatement->execute() #1 [internal function]: Phalcon\Db\Adapter\Pdo\AbstractPdo->executePrepared() #2 [internal function]: Phalcon\Db\Adapter\Pdo\AbstractPdo->query() #3 /var/www/html/hsimag/app/controllers/StoriesController.php(20): Phalcon\Db\Adapter\AbstractAdapter->fetchAll() #4 [internal function]: StoriesController->categoryAction() #5 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod() #6 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch() #7 /var/www/html/hsimag/public/index.php(43): Phalcon\Mvc\Application->handle() #8 {main}