Failed to execute the SQL query

select  i.title,  c.title, c.id, c.siteurl, i.unread, i.url, i.enclosure, i.author, i.description, c.icon,  unix_timestamp(ifnull(i.pubdate,i.added)) as ts,  i.pubdate is not null as ispubdate, i.id, r.rating, c.issponsor   from  cotillion_itemtemp  i  left join  cotillion_rating  r on (i.id = r.iid),  cotillion_channels  c,  cotillion_folders  f  where  i.cid = c.id and  f.id=c.parent and  not(i.unread & 8) and  not(i.unread & 4) and ((i.description like '%army post%' or  i.title like '%army post%') )  and not(i.unread & 4)  and not(i.unread & 8)  and  1=1  order by    ts desc, i.added desc  limit  0, 9999

Error 2013: Lost connection to MySQL server during query