title: Select from 2 tables MySQL
body: <p>I would like to select last record from 1 table for each ID section connected with another table. Connection between those tables is: notes.user_id = application_forms.id
  and then notes.post_by_id = application_forms.user_id
  I would like to select last record for each notes.user_id so I can display different CSS on the fonts depending on which user enter some notes, hope it's clear, if not I am here</p>
  
  <p>1st Table</p>
  
  <pre><code>CREATE TABLE notes (
    note_id int(255) NOT NULL AUTO_INCREMENT,
    note_when timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    user_id int(255) DEFAULT NULL,
    post_by_id int(255) DEFAULT NULL,
    note text,
    PRIMARY KEY (note_id)
  ) ENGINE=InnoDB  DEFAULT CHARSET=latin1;
  </code></pre>
  
  <p>2nd Table</p>
  
  <pre><code>CREATE TABLE application_forms (
    id int(255) NOT NULL AUTO_INCREMENT,
    user_id int(255) DEFAULT NULL,
    PRIMARY KEY (id)
  ) ENGINE=InnoDB  DEFAULT CHARSET=latin1;
  </code></pre>