Fehler 1 in beim Aufruf von sql_query mit der Query SELECT t0.filename, t0.mimetype, t1.content AS image_title, t2.content AS image_description, t0.filename_original FROM asset_file t0 LEFT JOIN asset_text t1 ON t1.id = t0.title_id LEFT JOIN asset_text t2 ON t2.id = t0.description_id WHERE t0.reference_id = AND t0.online = 1 GROUP BY t0.id ORDER BY t0.sorting ASC

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 t0.online = 1 GROUP BY t0.id ORDER BY t0.s...' at line 8