SELECT * FROM `data` WHERE `type`='file' AND (`name` LIKE '%Сексуальная%' OR `name` LIKE '%краля%' OR `name` LIKE '%Maddy%' OR `name` LIKE '%O'reilly%' OR `name` LIKE '%переносит%' OR `name` LIKE '%жесткое%' OR `name` LIKE '%сношение%') AND `id`!='19449' AND `moder`='0' AND `moder_public` = 1 ORDER BY RAND() LIMIT 12;
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'reilly%' OR `name` LIKE '%переносит%' OR `name` LIKE '%жесткое%'' at line 1