string(1517) "ERROR: Mysqli prepare error: Expression #1 of ORDER BY clause is not in SELECT list, references column 'rusrep_new.gallery_image_link.sort' which is not in SELECT list; this is incompatible with DISTINCT
#0 /var/www/rusrep.ru/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('SELECT DISTINCT...')
#1 /var/www/rusrep.ru/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT DISTINCT...')
#2 /var/www/rusrep.ru/library/Zend/Db/Adapter/Abstract.php(467): Zend_Db_Adapter_Mysqli->prepare('SELECT DISTINCT...')
#3 /var/www/rusrep.ru/library/Rusrep/Article.php(837): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select))
#4 /var/www/rusrep.ru/application/modules/article/controllers/FiguraController.php(70): Rusrep_Article::getArticleGalleryPhotoList(10007216)
#5 /var/www/rusrep.ru/library/Zend/Controller/Action.php(513): Article_FiguraController->indexAction()
#6 /var/www/rusrep.ru/library/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('indexAction')
#7 /var/www/rusrep.ru/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#8 /var/www/rusrep.ru/library/Zend/Controller/Front.php(212): Zend_Controller_Front->dispatch()
#9 /var/www/rusrep.ru/application/system/Bootstrap.php(60): Zend_Controller_Front::run(Array)
#10 /var/www/rusrep.ru/htdocs/index.php(54): Bootstrap->run(Array)
#11 {main}"