Failed to execute the SQL query

select  i.title,  c.title, c.id, 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  , null  from  item  i  inner join  channels  c on (c.id = i.cid)  inner join  folders  f on (f.id = c.parent)  where  not(i.unread & 8) and  not(i.unread & 4) and  1 = 1  and month(ifnull(i.pubdate,i.added))= 2  and year(ifnull(i.pubdate, i.added))= 2018  and dayofmonth(ifnull(i.pubdate,i.added))= 15  and  1=1  order by  ts desc, f.position asc, c.position asc , ts desc, i.id asc limit  0, 100

Error 1317: Query execution was interrupted