SELECT wp_posts.* FROM wp_posts LEFT JOIN wp_icl_translations ON wp_posts.ID = wp_icl_translations.element_id WHERE wp_posts.post_type = 'bad' AND wp_posts.post_status = 'publish' AND wp_icl_translations.language_code = 'de' GROUP BY wp_posts.ID ORDER BY wp_posts.post_title ASC
Array
(
    [0] => 9319
    [1] => 9153
    [2] => 9241
    [3] => 9315
    [4] => 9108
    [5] => 9227
    [6] => 9125
    [7] => 9159
    [8] => 9136
    [9] => 9174
    [10] => 9102
    [11] => 9341
    [12] => 9179
    [13] => 9270
    [14] => 9338
    [15] => 9206
    [16] => 9272
    [17] => 9221
    [18] => 9112
    [19] => 9106
    [20] => 9226
    [21] => 9274
    [22] => 9092
    [23] => 9229
    [24] => 9188
    [25] => 9317
    [26] => 9243
    [27] => 9340
    [28] => 9331
    [29] => 9155
    [30] => 9289
    [31] => 9325
    [32] => 9157
    [33] => 9110
    [34] => 9198
    [35] => 9302
    [36] => 9196
    [37] => 9115
    [38] => 9111
    [39] => 9097
    [40] => 9311
    [41] => 9117
    [42] => 9161
    [43] => 9096
    [44] => 9336
    [45] => 9118
    [46] => 9224
    [47] => 9257
    [48] => 11920
    [49] => 9120
    [50] => 9185
    [51] => 9307
    [52] => 9267
    [53] => 9193
    [54] => 9295
    [55] => 9141
    [56] => 9149
    [57] => 9252
    [58] => 9122
    [59] => 9329
    [60] => 9163
    [61] => 9164
    [62] => 9313
    [63] => 9104
    [64] => 9134
    [65] => 9212
    [66] => 9133
    [67] => 9234
    [68] => 9126
    [69] => 9321
    [70] => 9138
    [71] => 9209
    [72] => 9334
    [73] => 9219
    [74] => 9166
    [75] => 9168
    [76] => 9216
    [77] => 9290
    [78] => 9169
    [79] => 9278
    [80] => 9264
    [81] => 9279
    [82] => 9323
    [83] => 9143
    [84] => 9124
    [85] => 9145
    [86] => 9210
    [87] => 9236
    [88] => 9187
    [89] => 9208
    [90] => 9263
    [91] => 9127
    [92] => 9147
    [93] => 9190
    [94] => 9237
    [95] => 9327
    [96] => 9239
    [97] => 9095
    [98] => 9202
    [99] => 9246
    [100] => 9151
    [101] => 9280
    [102] => 9282
    [103] => 9129
    [104] => 9297
    [105] => 9305
    [106] => 9217
    [107] => 9183
    [108] => 9192
    [109] => 9248
    [110] => 9250
    [111] => 9310
    [112] => 9299
    [113] => 9261
    [114] => 9269
    [115] => 9131
    [116] => 9195
    [117] => 9176
    [118] => 9200
    [119] => 9214
    [120] => 9099
    [121] => 9204
    [122] => 9254
    [123] => 9284
    [124] => 9287
)