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"