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 display=1 ORDER BY `_CMS`.`rank` ASC, `date` DESC LIMIT 100000' at line 4 SELECT * FROM (`_CMS`) WHERE parent= AND display=1 ORDER BY `_CMS`.`rank` ASC, `date` DESC LIMIT 100000
Fatal error: Uncaught Error: Call to a member function fetch_assoc() on null in /home/surge/public_html/_private/classes/_system/CMS.class.php:70 Stack trace: #0 /home/surge/public_html/_private/classes/_system/CMS.class.php(217): CMS->load_children() #1 /home/surge/public_html/index.php(20): CMS->content() #2 /home/surge/public_html/route.php(52): include('/home/surge/pub...') #3 {main} thrown in /home/surge/public_html/_private/classes/_system/CMS.class.php on line 70