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 MySQL server version for the right syntax to use near 'and sc.draft=0 order by sc.id desc limit 0, 18' at line 1 in /home/skolaset/public_html/lib/functions.php:375
Stack trace:
#0 /home/skolaset/public_html/lib/functions.php(375): PDOStatement->execute()
#1 /home/skolaset/public_html/lib/functions.php(343): execute_select2(Object(PDOStatement), Array)
#2 /home/skolaset/public_html/category.php(431): select_data2('scholarship_cla...', 'sc.*,s.section,...', 'sc left outer j...', '')
#3 {main}
thrown in /home/skolaset/public_html/lib/functions.php on line 375