Binding error: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 YEAR(article.date_created) = ? AND article.is_active = ? ORDER BY article.' at line 5
Fatal error: Uncaught Error: Call to a member function num_rows() on boolean in /home2/travemf4/includes_ulsturch/class.Db.php:242 Stack trace: #0 /home2/travemf4/includes_ulsturch/class.Db.php(40): Db->execute_result_info() #1 /home2/travemf4/includes_ulsturch/class.Content.inc(513): Db->__call('num_rows', Array) #2 /home2/travemf4/includes_ulsturch/class.Content.inc(212): Content::find_by(Array, 'count') #3 /home2/travemf4/public_html/ulsturch/components/article/list.php(71): Content::count_by(Array) #4 /home2/travemf4/public_html/ulsturch/components/article/index.php(99): require_once('/home2/travemf4...') #5 /home2/travemf4/public_html/ulsturch/index.php(139): require_once('/home2/travemf4...') #6 {main} Next Error: Call to a member function close() on boolean in /home2/travemf4/includes_ulsturch/class.Db.php:21 Stack trace: #0 /home2/travemf4/includes_ulsturch/class.Content.inc(513): Db->__destruct() #1 /home2/travemf4/includes_ulsturch/class.Content.inc(212): Content::find_by(Array, 'count') #2 /home2/travemf4/publ in /home2/travemf4/includes_ulsturch/class.Db.php on line 21