Auswahl nach

SELECT T.`Titel-Nr` FROM `Titel` AS T, `Filme und Art` AS F LEFT OUTER JOIN `Filmart Uebergeordnet` AS FU ON F.`Filmart-Nr` = FU.`Filmart-Nr` where T.`Titel-Nr` = F.`Titel-Nr` and T.`Titel-Kz` in ('F','E','S') and T.`Indiziert` is null and F.`Filmart-Nr` <> 59) and ('E'='E' and F.`Filmart-Nr` = 87 or 'E'='U' and FU.`Filmart-Nr Uebergeordnet` = 87)
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 ') and ('E'='E' and F.`Filmart-Nr` = 87 or 'E'='U' and FU.`Filmart-Nr Uebergeordn' at line 1