exception 'ActiveRecord\DatabaseException' with message 'exception 'PDOException' with message '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 articles.article_status = 1 ORDER BY articles.article_datetime DESC LIMIT ' at line 1' in /home/thabat/public_html/bend/classes/lib/Connection.php:309 Stack trace: #0 /home/thabat/public_html/bend/classes/lib/Connection.php(309): PDOStatement->execute(Array) #1 /home/thabat/public_html/bend/classes/lib/Table.php(218): ActiveRecord\Connection->query('SELECT articles...', Array) #2 /home/thabat/public_html/bend/classes/lib/Table.php(209): ActiveRecord\Table->find_by_sql('SELECT articles...', Array, false, NULL) #3 /home/thabat/public_html/bend/classes/lib/Model.php(1556): ActiveRecord\Table->find(Array) #4 [internal function]: ActiveRecord\Model::find('all', Array) #5 /home/thabat/public_html/bend/classes/lib/Model.php(1384): call_user_func_array('static::find', Array) #6 /home/thabat/public_html/bend/classes/Article.php(95): ActiveRecord\Model::all(Array) #7 /home/thabat/public_html/article.php(36): Article::GetMultiCatArticles('', 4) #8 {main}' in /home/thabat/public_html/bend/classes/lib/Connection.php:312 Stack trace: #0 /home/thabat/public_html/bend/classes/lib/Table.php(218): ActiveRecord\Connection->query('SELECT articles...', Array) #1 /home/thabat/public_html/bend/classes/lib/Table.php(209): ActiveRecord\Table->find_by_sql('SELECT articles...', Array, false, NULL) #2 /home/thabat/public_html/bend/classes/lib/Model.php(1556): ActiveRecord\Table->find(Array) #3 [internal function]: ActiveRecord\Model::find('all', Array) #4 /home/thabat/public_html/bend/classes/lib/Model.php(1384): call_user_func_array('static::find', Array) #5 /home/thabat/public_html/bend/classes/Article.php(95): ActiveRecord\Model::all(Array) #6 /home/thabat/public_html/article.php(36): Article::GetMultiCatArticles('', 4) #7 {main}