Fehler in beim Aufruf von sql_query mit der Query SELECT t0.* FROM newssystem_category t0 WHERE t0.newssystem_id = 8 AND t0.id =

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 '' at line 4

Fehler in beim Aufruf von sql_query mit der Query SELECT t4.content AS category_realurl, t4.counter AS category_realurl_counter, t3.content AS entry_realurl, t3.counter AS entry_realurl_counter, t5.content AS teaser_title, t6.content AS teaser_text, t0.id AS entry_id, t0.entry_date AS entry_date, t0.teaser_title_id, t0.title_id, t0.text_id, t0.teaser_text_id, t7.content AS title, t8.content AS text, t9.content AS category_name FROM (SELECT * FROM newssystem_entry WHERE archive = 0 AND online = 1 AND reference_id = 8 AND id = 55) AS t0 INNER JOIN `newssystem_entry-category` t1 ON t1.entry_id = t0.id INNER JOIN `newssystem_category` t2 ON t2.id = t1.category_id INNER JOIN `realurl` t3 ON t0.realurl_id = t3.id INNER JOIN `realurl` t4 ON t2.realurl_id = t4.id LEFT JOIN `asset_text` t5 ON t0.teaser_title_id = t5.id LEFT JOIN `asset_text` t6 ON t0.teaser_text_id = t6.id INNER JOIN `asset_text` t7 ON t0.title_id = t7.id INNER JOIN `asset_text` t8 ON t0.text_id = t8.id INNER JOIN `asset_text` t9 ON t9.id = t2.title_id GROUP BY t0.id ORDER BY t0.

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 '' at line 25