title: MySQL - Display multiple rows in one field (tables with inner joins)q
body: <p>I have a mysql database with 3 tables, one table is called fixturechannels, one is called footballfixtures, and one is called satellite. </p>
  
  <p>Basically the satellite table contains information about satellite channels (name, country, channelid), footballfixtures contains (matchid, hometeam, awayteam, competition....), and fixturechannels is a table containing (matchid, and channelid, these are linked by foriegn keys from the satellite and footballfixtures table respectively).</p>
  
  <p>Below are further details on the tables:</p>
  
  <p><a href="http://i.stack.imgur.com/27fnS.png" rel="nofollow">tablelayouts</a></p>
  
  <p>I used the following query below, and it worked, I was able to echo the details I need from the table</p>
  
  <pre><code>"SELECT * FROM fixturechannels INNER JOIN footballfixtures ON fixturechannels.matchid=footballfixtures.matchid INNER JOIN satellite ON fixturechannels.channelid=satellite.channelid";
  </code></pre>
  
  <p>The code used for echoing the details is:</p>
  
  <pre><code> &lt;tbody&gt;&lt;tr&gt;
              &lt;th&gt;Match ID&lt;/th&gt;
              &lt;th&gt;Home Team&lt;/th&gt;
              &lt;th&gt;Away Team&lt;/th&gt;
              &lt;th&gt;Competition&lt;/th&gt;
              &lt;th&gt;Date&lt;/th&gt;
              &lt;th&gt;Time&lt;/th&gt;
              &lt;th&gt;Channel ID&lt;/th&gt;
              &lt;th&gt;Channel Name&lt;/th&gt;
  
  
                  &lt;/tr&gt;
                  &lt;?php foreach ($results as $res) { ?&gt;
                  &lt;tr&gt;
                 &lt;td&gt;&lt;?php echo $res["matchid"]; ?&gt;&lt;/td&gt;
                 &lt;td&gt;&lt;?php echo $res["hometeam"]; ?&gt;&lt;/td&gt;
                 &lt;td&gt;&lt;?php echo $res["awayteam"]; ?&gt;&lt;/td&gt;
                 &lt;td&gt;&lt;?php echo $res["competition"]; ?&gt;&lt;/td&gt;
                 &lt;td&gt;&lt;?php echo $res["date"]; ?&gt;&lt;/td&gt;
                 &lt;td&gt;&lt;?php echo $res["time"]; ?&gt;&lt;/td&gt;
                &lt;td&gt;&lt;?php echo $res["channelid"]; ?&gt;&lt;/td&gt;
                &lt;td&gt;&lt;?php echo $res["name"]; ?&gt;&lt;/td&gt;
              &lt;/tr&gt;
  </code></pre>
  
  <p>My issue is that the match details are displayed twice
  as there are two channels listed as showing the same match (see image)</p>
  
  <p><a href="http://i.stack.imgur.com/rxMgl.png" rel="nofollow">incorrectoutput</a> </p>
  
  <p><strong>my desired output is to have the details for each match to be shown once, and the names of multiple channels showing the matches to be displayed in the channel name column (no multiple rows)</strong></p>
  
  <p>I tried using GROUP_CONCAT, but didn't have success, I tried GROUP_CONCAT as I know it is not recommended to have multiple values per field in MYSQL.</p>
  
  <p>Many Thanks to anyone who can provide assistance or guidance.</p>