title: printing sql query result in a single line
body: <p>I have two columns (groupID, memberID) in table and I execute following mysql query</p>
  <pre><code>select `groupID` from `tbl_groupassign` where `memberID` = 'check1';
  </code></pre>
  <p>which prints column groupID but I want to show groupID in single row with each groupID separated by comma. For example I get following result by executing above query</p>
  <blockquote>
  <p>groupID</p>
  <p>group1</p>
  <p>group2</p>
  </blockquote>
  <p>but I want show it as group1, group2</p>