@ -167,8 +167,15 @@ public class MmsSmsDatabase extends Database {
mmsQueryBuilder.setDistinct(true);
smsQueryBuilder.setDistinct(true);
mmsQueryBuilder.setTables(MmsDatabase.TABLE_NAME+" LEFT OUTER JOIN "+AttachmentDatabase.TABLE_NAME+" ON ("+MmsDatabase.TABLE_NAME+"."+MmsDatabase.ID+" = "+AttachmentDatabase.TABLE_NAME+"."+AttachmentDatabase.MMS_ID+")");