You have to create an attribute called, for example, "FullName" or "Name". Mark this attribute as "calculated". Add a rule to set the value of this attribute:
Person.Name = Person.LastName + ',' + Person.FirstName
Then make sure you include this attribute into query results.
Best Regards