Fix name of left_id field
Add parent_id field
Add missing parenthesis