To show values of fields from cutom table in dashlet list view

Hi, I created one custom module task assignment and added multiple select for employees.
I created relationship that module to another module. So in detailed view, it will shows the list of assigned task. But it is not showing employee list, so that i want to show it from custom query. How to write custom query to show these values in subpannels

Thank you in advance