select count(*) from pinds_blog_entries where entry_id = :entry_id select draft_p from pinds_blog_entries where entry_id = :entry_id select title, content, draft_p, to_char(entry_date, 'YYYY-MM-DD') as entry_date from pinds_blog_entries where entry_id = :entry_id update pinds_blog_entries set [join $set_clauses ", "] where entry_id = :entry_id