From aa7aa59def3be7687be9ae18dd6599deabddeb39 Mon Sep 17 00:00:00 2001 From: Olaf Conradi Date: Sun, 3 Mar 2013 20:44:52 +0100 Subject: [PATCH] Fix SQL error for missing AND operator AND operator was missing from WHERE clause --- mod/notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/notifications.php b/mod/notifications.php index 9c14737f7f..c7f8e1bbd9 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -233,7 +233,7 @@ function notifications_content(&$a) { `item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object` as `object`, `pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink` FROM `item` INNER JOIN `item` as `pitem` ON `pitem`.`id`=`item`.`parent` - WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND `pitem`.`parent` != 0 + WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND `pitem`.`parent` != 0 AND `item`.`deleted` = 0 AND `item`.`uid` = %d AND `item`.`wall` = 0 ORDER BY `item`.`created` DESC" , intval(local_user()) );