parent_id == id -> infinite loop Q.E.D.
used wrong quoting method
adding sql tests to admin