summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manager/src/msg-manager-notification.cpp2
1 files changed, 1 insertions, 1 deletions
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,