Fatal error: Uncaught mysqli_sql_exception: 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 'and a.approved != 2 ORDER BY a.created_at desc LIMIT 10' at line 1 in /var/www/html/youportal/classes/sdba/sdba.php:743
Stack trace:
#0 /var/www/html/youportal/classes/sdba/sdba.php(743): mysqli->query()
#1 /var/www/html/youportal/classes/newsfeed/NewsFeed.class.php(133): Sdba->query()
#2 /var/www/html/youportal/platform/assets/template/default/10006/modules_pages/42/list.php(33): NewsFeed->fetchAllPost()
#3 /var/www/html/youportal/platform/assets/template/default/10006/modules_pages/42_default.php(18): include('...')
#4 /var/www/html/youportal/website/inc/getsitemenus.php(246): include_once('...')
#5 /var/www/html/youportal/index.php(171): include('...')
#6 {main}
thrown in /var/www/html/youportal/classes/sdba/sdba.php on line 743