Error Report

Error: MySQL: 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 menu1 = 1 OR handle = 5 AND public = 1 ORDER BY `order`, `id`' at line 6

Query: SELECT * FROM tree WHERE pid = AND menu1 = 1 OR handle = 5 AND public = 1 ORDER BY `order`, `id`


File: /home/alexbe344/public_html/gustavianroom.ru/includes/mysql.class.php, Line 138