From: Friendika Date: Wed, 26 Oct 2011 03:05:21 +0000 (-0700) Subject: sql error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d9f64deda0192a85265f5913877fc3adf95aa177;p=friendica.git sql error --- diff --git a/include/items.php b/include/items.php index 4e7674a2e9..1b4b524911 100644 --- a/include/items.php +++ b/include/items.php @@ -1264,7 +1264,7 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0) } if($deleted && is_array($contact)) { $r = q("SELECT `item`.*, `contact`.`self` FROM `item` left join `contact` on `item`.`contact-id` = `contact`.id` - WHERE `uri` = '%s' AND `uid` = %d AND `contact-id` = %d LIMIT 1", + WHERE `uri` = '%s' AND `item`.`uid` = %d AND `contact-id` = %d LIMIT 1", dbesc($uri), intval($importer['uid']), intval($contact['id'])