SELECT anbieter_ort.ort_id, ortsname.name FROM anbieter_ort, ortsname, ort where anbieter_ort.anbieter_id = '7' and anbieter_ort.ort_id=ort.id and ortsname.id=ort.ortsname_id and ort.oberort='0'