Notice: Undefined variable: sort_id in /home/websites/h_homepages/global/generator/main.php on line 232

Fatal error: Exception: 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 Anzeige_Bis >= adddate(now() , -100) and Anzeige_ab <= now() ' at line 7 query: SELECT distinct b.* FROM HH_Bilder as b, HH_Haus_Lief_Zuord as z where ((z.HNR = 80663 and z.ausblenden = 0 and b.LNR = z.LNR) or (b.HNR = 80663)) and b.geeignet_Slieder = 1 and b.Sortiment= and Anzeige_Bis >= adddate(now() , -100) and Anzeige_ab <= now() ORDER BY RAND(), b.Erstellungsdatum desc LIMIT 5 (in /home/websites/h_homepages/global/generator/_class/MysqliDb.php line 1498) #0 /home/websites/h_homepages/global/generator/_class/MysqliDb.php(388): MysqliDb->_prepareQuery() #1 /home/websites/h_homepages/global/generator/_class/Haendler.php(201): MysqliDb->rawQuery('????SELECT dist...') #2 /home/websites/h_homepages/global/generator/main.php(232): Haendler->getSliderImagesSortimentById(Object(MysqliDb), '80663 in /home/websites/h_homepages/hauser/80663/index.php on line 64

Error: Exception: 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 Anzeige_Bis >= adddate(now() , -100)
and Anzeige_ab <= now()
' at line 7 query:
SELECT distinct b.*
FROM HH_Bilder as b, HH_Haus_Lief_Zuord as z
where
((z.HNR = 80663 and z.ausblenden = 0 and b.LNR = z.LNR) or (b.HNR = 80663))
and b.geeignet_Slieder = 1
and b.Sortiment=
and Anzeige_Bis >= adddate(now() , -100)
and Anzeige_ab <= now()
ORDER BY RAND(), b.Erstellungsdatum desc
LIMIT 5
(in /home/websites/h_homepages/global/generator/_class/MysqliDb.php line 1498)

#0 /home/websites/h_homepages/global/generator/_class/MysqliDb.php(388): MysqliDb->_prepareQuery()
#1 /home/websites/h_homepages/global/generator/_class/Haendler.php(201): MysqliDb->rawQuery('????SELECT dist...')
#2 /home/websites/h_homepages/global/generator/main.php(232): Haendler->getSliderImagesSortimentById(Object(MysqliDb), '80663


This error message was shown because: site is in debug mode. ($config->debug = true; => /site/config.php). Error has been logged.