execute() of SELECT medien.*,multicat.ukatnr,multicat.type FROM medien LEFT JOIN multicat ON multicat.nr = medien.MedienNr WHERE typ = 'attachement' AND multicat.type = 'media' AND multicat.type = 'media' AND medien.prokatnr = '653' AND ((medien.bildname LIKE '%stadtsaal%' OR medien.link LIKE '%stadtsaal%' OR medien.stichwort1 LIKE '%stadtsaal%' OR medien.stichwort2 LIKE '%stadtsaal%' OR medien.stichwort3 LIKE '%stadtsaal%' OR medien.bildautor LIKE '%stadtsaal%' OR medien.bildunterschrift LIKE '%stadtsaal%' OR medien.content LIKE '%stadtsaal%' ) (medien.bildname LIKE '%landeck%' OR medien.link LIKE '%landeck%' OR medien.stichwort1 LIKE '%landeck%' OR medien.stichwort2 LIKE '%landeck%' OR medien.stichwort3 LIKE '%landeck%' OR medien.bildautor LIKE '%landeck%' OR medien.bildunterschrift LIKE '%landeck%' OR medien.content LIKE '%landeck%' )) AND ((LOCATE('flv',link) >= 1) OR (LOCATE('mp4',link) >= 1)) ORDER BY updatum desc LIMIT 0,20 failed at 28.03.2020 16:17:19 mysql_error: 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 '(medien.bildname LIKE '%landeck%' OR medien.link LIKE '%landeck%' OR medien.st' at line 1