title: Mysql fetch from multiple tables
body: <p>Fee Table....status 1 shows that the fee is common in all class...
      and status 2 is for uncommon fee................</p>
  
  <pre><code>+--------+------------------+-------------+--------+
  | fee_id | fee_name         | duration_id | status |
  +--------+------------------+-------------+--------+
  |      1 | Admission Fee    |           4 |      1 |
  |      2 | Re-admission Fee |           4 |      1 |
  |      3 | Tuition Fee      |           1 |      1 |
  |      4 | Computer Lab Fee |           1 |      2 |
  |      5 | Science Lab Fee  |           1 |      2 |
  |      6 | Exam Fee         |           2 |      1 |
  |      7 | Electricity Fee  |           3 |      1 |
  |      8 | Transport Fee    |           1 |      1 |
  |      9 | Late Fee         |           1 |      1 |
  +--------+------------------+-------------+--------+`
  </code></pre>
  
  <p>Class Table....................</p>
  
  <pre><code>+----------+------------+
  | class_id | class_name |
  +----------+------------+
  |        1 | Nursery    |
  |        2 | L.K.G      |
  |        3 | U.K.G      |
  |        4 | 1          |
  |        5 | 2          |
  |        6 | 3          |
  |        7 | 4          |
  |        8 | 5          |
  |        9 | 6          |
  |       10 | 7          |
  |       11 | 8          |
  |       12 | 9          |
  |       13 | 10         |
  +----------+------------+
  </code></pre>
  
  <p>`Here, I am mapping uncommon fee to class.</p>
  
  <pre><code>+----------+--------+
  | class_id | fee_id |
  +----------+--------+
  |       10 |      4 |
  |       10 |      5 |
  |       11 |      4 |
  |       11 |      5 |
  |       12 |      4 |
  |       12 |      5 |
  |       13 |      4 |
  |       13 |      4 |
  +----------+--------+
  </code></pre>
  
  <p>I have to fetch fee_names for class id 10 including all the common fee and uncommon fee belongs to that class_id.</p>