You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Джерело". гостьові кімнати" AND parentword= "" AND lng="4"' at line 1
SELECT * FROM a_tree WHERE wkey = "центр "Джерело". гостьові кімнати" AND parentword= "" AND lng="4"