select source_id,
owner_id,
feed_url,
last_modified
from na_sources
update na_items
set link = :link,
title = :title,
description = :description,
creation_date = now()
where item_id = :item_id
select 1 from na_sources where owner_id = :owner_id AND feed_url =:feed_url
select deleted_p, item_id, i.title as item_title, i.description as item_description
from na_sources s, na_items i
where owner_id = :owner_id
and s.source_id = i.source_id
and i.$identifier = :$identifier
and feed_url = :feed_url
order by item_id
update na_sources
set link = :link,
title = :title,
description = :description,
updates = (updates + 1),
last_scanned = sysdate,
last_modified = :last_modified
where source_id = :source_id