- /// @todo We seem to need "Item::count" as function as well
- $r = q("SELECT COUNT(*) AS `total`
- FROM `item` %s
- 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(local_user()),
- item_condition(),
- intval(local_user())
- );