select guid, original_guid, i.title, i.description from na_items i join na_sources s on (i.source_id = s.source_id) where s.feed_url = :feed_url and guid in ($guids) order by i.item_id asc select count(*) from na_sources