Fatal error: Uncaught exception 'Lib_Db_Exception' with message 'Error: 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
gj.position ASC' at line 12' in /var/www/site/portal/library/Lib/Db.php:212
Stack trace:
#0 /var/www/site/portal/library/Lib/Db.php(292): Lib_Db->query('? SE...', Array)
#1 /var/www/site/portal/application/models/Model/Article.php(58): Lib_Db->all('? SE...')
#2 /var/www/site/portal/application/controllers/ArticleController.php(41): Model_Article->getArticleImages(NULL)
#3 /var/www/site/portal/library/Zend/Controller/Action.php(513): ArticleController->displayAction()
#4 /var/www/site/portal/library/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('displayAction')
#5 /var/www/site/portal/library/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Htt in /var/www/site/portal/library/Lib/Db.php on line 212