Notice: Trying to get property 'id' of non-object in /home/u9748612/public_html/categoryListing.php on line 14

Notice: Trying to get property 'name' of non-object in /home/u9748612/public_html/categoryListing.php on line 15

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 MariaDB server version for the right syntax to use near 'AND status = 1 ORDER BY id DESC LIMIT 0,16' at line 1 in /home/u9748612/public_html/categoryListing.php:17 Stack trace: #0 /home/u9748612/public_html/categoryListing.php(17): PDO->query('SELECT id,title...', 5) #1 {main} thrown in /home/u9748612/public_html/categoryListing.php on line 17