From: friendica Date: Sun, 15 Jul 2012 03:28:17 +0000 (-0700) Subject: sql errors on profile page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=79b5520e770dcf40fafcc614f2e11515b0804cf0;p=friendica.git sql errors on profile page --- diff --git a/mod/profile.php b/mod/profile.php index 78fb5487cd..cc333d36ec 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -206,7 +206,7 @@ function profile_content(&$a, $update = 0) { FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND (`item`.`deleted` = 0 OR item.verb = '" . ACTIVITY_LIKE ."' OR item.verb = '" . ACTIVITY_DISLIKE . "') - WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0 + AND `item`.`deleted` = 0 and `item`.`moderated` = 0 and `item`.`unseen` = 1 AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 AND `item`.`wall` = 1