Lost connection to server during query

select p.id, i.title from authors p, authors_items i where i.author_id = p.id and i.lang_id = '1' order by i.sortby