SELECT * FROM `data` WHERE `type`='file' AND (`name` LIKE '%Порно%' OR `name` LIKE '%студентов%' OR `name` LIKE '%общаге%') AND `id`!='927' AND `moder`='0' AND `moder_public` = 1 ORDER BY RAND() LIMIT 12;
MySQL server has gone away