[SELECT swm_beruflichebildung_forms.*, swm_beruflichebildung_forms.id AS FormId, swm_schoenauer_messages.*, swm_themes.Theme FROM swm_beruflichebildung_forms LEFT JOIN swm_schoenauer_messages ON swm_schoenauer_messages.id=swm_beruflichebildung_forms.messages_id LEFT JOIN swm_themes ON swm_themes.id=swm_beruflichebildung_forms.ThemesId WHERE swm_beruflichebildung_forms.id=1]