FATAL:  terminating connection due to administrator command
SSL connection has been closed unexpectedly

select a.id,a.title,substr(a.gist,1,400) as story,to_char(a.etm, 'FMDay,Month FMDD,IYYY') || ' [' || (select tmp.interval_time1(a.etm::text)) || ']' as etm,img_path as path from ewf.story_15 a  WHERE a.sub_ctg IN (43,43 ) order by a.id desc OFFSET (2012*7)-7  limit 7