Notice: Undefined index: id_blog in /home/dgsmartmom/public_html/blog-detail.php on line 24

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 (`public_date` <= "2024-12-19 00:00:00" OR `public_date` IS NULL OR `public_' at line 1 in /home/dgsmartmom/public_html/classes/Blog.php:325 Stack trace: #0 /home/dgsmartmom/public_html/classes/Blog.php(325): PDO->query('SELECT * FROM ...') #1 /home/dgsmartmom/public_html/blog-detail.php(29): Blog->getDataBlog(NULL, true, false) #2 {main} thrown in /home/dgsmartmom/public_html/classes/Blog.php on line 325