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 'л'е'м'б'о'ц'ь'к'и'й'-'' AND id!='11966520' AND deleted!='1' ORDER BY r' at line 1SELECT * FROM people WHERE last_name='Г'л'е'м'б'о'ц'ь'к'и'й'-'' AND id!='11966520' AND deleted!='1' ORDER BY rating DESC LIMIT 4