From: Kyeonghun Lee Date: Fri, 28 Oct 2016 04:21:57 +0000 (+0900) Subject: [TSAM-9200] fix query error X-Git-Tag: accepted/tizen/common/20161102.122111~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03da48757a783f54071a4ae93ae53cf56a9ebd86;p=platform%2Fcore%2Fmessaging%2Fmsg-service.git [TSAM-9200] fix query error Change-Id: I51b9a9f9e26403197ef65afa88c2127d08ebb773 Signed-off-by: Kyeonghun Lee --- diff --git a/manager/src/msg-manager-notification.cpp b/manager/src/msg-manager-notification.cpp index d977352..533ba53 100644 --- a/manager/src/msg-manager-notification.cpp +++ b/manager/src/msg-manager-notification.cpp @@ -1787,7 +1787,7 @@ int getLatestMsgInfo(MSG_MGR_NOTI_INFO_S *noti_info, bool isForInstantMessage) "B.ATTACHMENT_COUNT " "FROM %s B " "LEFT JOIN %s A ON A.CONV_ID=B.CONV_ID " - "AND B.READ_STATUS=0 AND (B.FOLDER_ID=%d OR B.FOLDER_ID=%d) " + "WHERE B.READ_STATUS=0 AND (B.FOLDER_ID=%d OR B.FOLDER_ID=%d) " "AND B.STORAGE_ID = %d " "ORDER BY B.DISPLAY_TIME DESC;", MSG_MMS_TYPE, MSG_NETWORK_RECEIVED, MMS_PLUGIN_MESSAGE_TABLE_NAME,