title: How to get name from id in mysql?
body: <p><code>course</code> table contains 4 courses.</p>
  
  <p>A single university contains multiple courses, so <code>university</code> table contains <code>course_id</code>, <code>values 1,2</code>. </p>
  
  <p>Can't apply foreign key because of multiple values.</p>
  
  <p>Then how to get the <code>course_name</code> from <code>course</code> table respectively.</p>
  
  <p>I have already tried <code>implode</code> and <code>explode</code> method.  </p>
  
  <p>In JSON response getting</p>
  
  <pre><code>course_id: 1,2
  </code></pre>
  
  <p>I want name of these both(1,2) course name</p>
  
  <p>Pls Help &amp; suggest query.</p>