title: Sorting items in a MySQL database based on the order of another column in PHP
body: <p>I have a database that looks something like this</p>
  
  <pre><code>Title     |     ID
  ---------------------------------
  Hello           45
  Hi              23
  Yo              52
  Test            76
  </code></pre>
  
  <p>And then I have another table that looks like this:</p>
  
  <pre><code>List                 |   Order
  ---------------------------------
  Main List                76,23,45,52
  </code></pre>
  
  <p>What I want to do is query the database and output the title of the first table based on the order of the 2nd table.</p>
  
  <p>Any ideas on the best way to do something like this?</p>