WHERE %s AND `item`.`uid` = %d AND `item`.`type` = 'note'
AND `contact`.`self` AND `item`.`id` = `item`.`parent` AND NOT `item`.`wall`
$sql_extra ",
- item_joins(),
+ item_joins(local_user()),
item_condition(),
intval(local_user())
);
AND `item`.`id` = `item`.`parent` AND NOT `item`.`wall`
$sql_extra
ORDER BY `item`.`created` DESC LIMIT %d ,%d ",
- item_joins(),
+ item_joins(local_user()),
item_condition(),
intval(local_user()),
intval($a->pager['start']),
$sql_extra
ORDER BY `parent` DESC, `gravity` ASC, `item`.`id` ASC ",
item_fieldlists(),
- item_joins(),
+ item_joins(local_user()),
item_condition(),
intval(local_user()),
dbesc($parents_str)