You have an error in your SQL syntax near 'AND rgt >= ORDER BY lft ASC' at line 1