Fatal error: Uncaught PDOException: 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 'news.news_code='22' GROUP BY news.news_code' at line 1 in /var/www/vhosts/humanlines.org/httpdocs/db.class.php:42
Stack trace:
#0 /var/www/vhosts/humanlines.org/httpdocs/db.class.php(42): PDO->query('SELECT * FROM n...')
#1 /var/www/vhosts/humanlines.org/httpdocs/functions.inc.php(1531): db->query('SELECT * FROM n...')
#2 /var/www/vhosts/humanlines.org/httpdocs/pages/news.inc.php(228): create_front(Array, 'news', '', '22', 'params_news')
#3 /var/www/vhosts/humanlines.org/httpdocs/pages/news.body.php(11): include('/var/www/vhosts...')
#4 /var/www/vhosts/humanlines.org/httpdocs/index.php(193): include('/var/www/vhosts...')
#5 {main}
thrown in /var/www/vhosts/humanlines.org/httpdocs/db.class.php on line 42
|