Browse Source

! LIMIT 1 makes no sense on a query that does COUNT()

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 10 years ago
parent
commit
036549b163
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Sources/PersonalMessage.php

+ 1 - 2
Sources/PersonalMessage.php

@@ -2726,8 +2726,7 @@ function MessageActionsApply()
 					FROM {db_prefix}pm_labels AS l
 						INNER JOIN {db_prefix}pm_labeled_messages AS pml ON (pml.id_label = l.id_label)
 					WHERE l.id_member = {int:current_member}
-						AND pml.id_pm = {int:current_pm}
-					LIMIT 1',
+						AND pml.id_pm = {int:current_pm}',
 					array(
 						'current_member' => $user_info['id'],
 						'current_pm' => $row['id_pm'],