Query : select urun.*,kategori.namePath from urun,kategori,marka where ((urun.userGroup like '%,,%' OR urun.userGroup = '')) AND (urun.active != 'SEARCH_RESULTS' AND urun.active=1) AND urun.markaID = marka.ID AND kategori.active=1 AND urun.catID=kategori.ID AND (kategori.name like '%tab%50' OR urun.ID = '%tab%50' OR marka.name like '%tab%50' OR urun.name like '%%tab%50%' OR urun.onDetay like '%%tab%50%' OR urun.tedarikciCode like '%%tab%50%' OR urun.gtin like '%%tab%50%' OR urun.data1 like '%%tab%50%' OR urun.seo like '%%tab%50%' OR urun.name like '%%TAB%50%' OR urun.filitre like '%%TAB%50%' OR urun.filitre like '%%tab%50%' OR urun.metaKeywords like '%%TAB%50%' OR urun.metaKeywords like '%%tab%50%' OR urun.metaDescription like '%%TAB%50%' OR urun.metaDescription like '%%tab%50%' OR (urun.name like '%%' AND urun.name like '%tab%' AND urun.name like '%50%')) AND urun.fiyat >= '0' AND fiyat <= '99999999999' group by urun.catID order by kategori.namePath, if(urun.stok = 0,1,0),urun.name like '% tab 50 %' desc,urun.name like '% tab 50%' desc,if(urun.resim = '' or urun.resim is null,1,0),urun.seq desc,urun.ID desc
MySQL server has gone away