Projects Directory : Call targeted leads to set up appointments - Call to a member function PHP error