when you try to show actual "user_name" field (for example) Sugar would return concatenated first_name and last_name instead of 'user_name'. that happenes due to strange if-clause when constructing db_concat_fields.
fix for relate fields in create_new_list_query
Thanks for submitting this pull request Farkhad! Have you had time to create a bug for it yet? If so could you please post the bug number here?
If not then please use our bug portal ( http://bugs.sugarcrm.com) to do so, and please make reference to this pull request url as well as describe the steps needed to recreate the behavior so that our QA can verify the fix once merged.