culture-images - Bilder der Kunst und Kulturgeschichte

SELECT wws.id,wws.cmi_id FROM wws INNER JOIN metadaten ON (metadaten.id=wws.id) INNER JOIN categories2object ON (metadaten.cmi_id=categories2object.FK_Object) AND gesperrt!=1 AND ranking!=0 and geloescht<>'1' AND (FK_categories=12 OR FK_categories=45 OR FK_categories=46 OR FK_categories=121 OR FK_categories=47 OR FK_categories=48 OR FK_categories=122 OR FK_categories=123 OR FK_categories=124 OR FK_categories=49)