SELECT * FROM page WHERE parent = and level = 2 and online = 1 ORDER BY sortierung ASC

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 level = 2 and online = 1 ORDER BY sortierung ASC' at line 1