Error
Error: E_USER_NOTICE
URL: https://harzflirter.de/events_event_list_coming_events.php?event_id=4
File: /var/www/vhosts/harzflirter.de/httpdocs/_include/lib/db_common.php
Line: 48
Message: Can't execute query: 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 1 ORDER BY e.category_id = 7 DESC, e.event_datetime ASC, e.created_at ASC' at line 1
SELECT COUNT(*) FROM events_event as e, geo_city as c WHERE c.city_id = e.city_id AND e.event_private = 0 AND DATE_ADD(e.event_datetime, INTERVAL 3 HOUR) > NOW() AND e.event_id <> AND 1 ORDER BY e.category_id = 7 DESC, e.event_datetime ASC, e.created_at ASC

Call stack:

File: /var/www/vhosts/harzflirter.de/httpdocs/_include/lib/db_common.php (Line: 48)
Function: trigger_error

File: /var/www/vhosts/harzflirter.de/httpdocs/_include/lib/db_mysqli.php (Line: 31)
Class: DB_Common
Function: triggerError

File: /var/www/vhosts/harzflirter.de/httpdocs/_include/lib/db_common.php (Line: 286)
Class: DB
Function: driver_query

File: /var/www/vhosts/harzflirter.de/httpdocs/_include/lib/db_common.php (Line: 523)
Class: DB_Common
Function: query

File: /var/www/vhosts/harzflirter.de/httpdocs/_include/current/events/tools.php (Line: 133)
Class: DB_Common
Function: result

File: /var/www/vhosts/harzflirter.de/httpdocs/_include/current/events/event_list.php (Line: 110)
Class: CEventsTools
Function: count_from_sql_base

File: /var/www/vhosts/harzflirter.de/httpdocs/_include/lib/block.php (Line: 296)
Class: CEventsEventList
Function: parseBlock

File: /var/www/vhosts/harzflirter.de/httpdocs/_include/lib/block.php (Line: 279)
Class: CHtmlBlock
Function: parse

File: /var/www/vhosts/harzflirter.de/httpdocs/_include/core/main_close.php (Line: 19)
Class: CHtmlBlock
Function: parse

File: /var/www/vhosts/harzflirter.de/httpdocs/events_event_list_coming_events.php (Line: 58)
Function: include