Warning: Undefined array key 1 in /var/www/www.lawtax.se/public/templates/header.tpl.php on line 158

Fatal error: Uncaught mysqli_sql_exception: 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 m.status = '1' and m.expireDate >= '2024-03-04 09:42:10' and m.publishDate <' at line 1 in /var/www/library3/classes/db.class.php:78 Stack trace: #0 /var/www/library3/classes/db.class.php(78): mysqli->query() #1 /var/www/library3/classes/medialist.class.php(62): DB->SQL_query() #2 /var/www/www.lawtax.se/public/include/functions.php(6): MediaList->getCategoryFiles() #3 /var/www/www.lawtax.se/public/templates/header.tpl.php(158): getTopImage() #4 /var/www/library3/classes/content.class.php(43): include('...') #5 /var/www/library3/classes/content.class.php(14): Content::get() #6 /var/www/www.lawtax.se/public/include/layout.php(18): Content::put() #7 /var/www/www.lawtax.se/public/article/article.php(35): pageStart() #8 /var/www/www.lawtax.se/public/article.php(7): include('...') #9 {main} thrown in /var/www/library3/classes/db.class.php on line 78