From: Olaf Conradi <olaf@conradi.org>
Date: Sun, 3 Mar 2013 19:44:52 +0000 (+0100)
Subject: Fix SQL error for missing AND operator
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aa7aa59def3be7687be9ae18dd6599deabddeb39;p=friendica.git

Fix SQL error for missing AND operator

AND operator was missing from WHERE clause
---

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())
 		);