Bad query:(SELECT oc.source_opus FROM opus_coll oc, opus o WHERE coll_id = and oc.source_opus = o.source_opus and (o.bereich_id is not null or o.bereich_id is null))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 oc.source_opus = o.source_opus and (o.bereich_id is not null or o.bereich_id' at line 1