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 'ORDER BY `sn` ASC' at line 1 IN FILE: /home/ms-police/ftp/moodo/core/db.php ON LINE:68
#0 /home/ms-police/ftp/moodo/core/db.php(68): PDOStatement->execute()
#1 /home/ms-police/ftp/moodo/controller/page.php(101): db->query('SELECT `img`,`a...')
#2 /home/ms-police/ftp/moodo/controller/page.php(94): page->_takeGall('130', Object(db), Object(main), NULL)
#3 /home/ms-police/ftp/moodo/controller/page.php(27): page->_takeOneArticle('wszystko_40_i_2...', '130')
#4 /home/ms-police/ftp/moodo/core/dispatcher.php(24): page->__construct('wszystko_40_i_2...', '', 'promocje')
#5 /home/ms-police/ftp/moodo/index.php(29): dispatcher::dispatch(Object(router))
#6 {main}