Anfrage:
SELECT * FROM ordner WHERE id=
Antwort:
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 '' at line 1
Fehlercode: 1064Es trat ein Fehler auf. Bitte überprüfen sie ihr
MySQL-Query.

Anfrage:
SELECT DISTINCT(a.id),a.titel,a.einleitung,a.text,a.datum,a.ordner_id,a.thumbnail,a.bild,a.bildlink,a.template,a.audio_url,a.programm_id,o.name as ordner_name, a.links_to_folder FROM articles a, ordner o
WHERE a.ordner_id=o.id AND (
(a.ordner_id=261 AND a.published='Y'
AND (
(a.datum<=NOW() AND a.enddatum='0000-00-00 00:00:00')
OR
(a.datum<=NOW() AND a.enddatum>=NOW())
)
) OR (
((a.additional_ordner=261 OR a.additional_ordner2=261) AND a.published='Y')
AND (
(a.datum<=NOW() AND a.enddatum='0000-00-00 00:00:00')
OR
(a.datum<=NOW() AND a.enddatum>=NOW())
)
) ) ORDER BY a.`order` ASC, a.datum DESC LIMIT 0,
Antwort:
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 '' at line 17
Fehlercode: 1064