title: query is not working correctly
body: <p>I have these tables:</p>
  
  <p><strong>single_user_has_university_has_course</strong></p>
  
  <pre><code>single_user_users_id_user   university_has_course_university_id_university  university_has_course_course_id_course  first_year_school   last_year_school grade
  1                                               1                                            1                             2000             2001            15  
  </code></pre>
  
  <p>And</p>
  
  <p><strong>university_has_course</strong></p>
  
  <pre><code>university_id_university    course_id_course
      1                           1               &lt;&lt;&lt; I want to select this
      15                          1
      1                           3
      15                          3
  </code></pre>
  
  <p>The problem is that the query below return all rows where <code>course_id_course = 1 but ignore the</code>university_id_university = 1`. Then, will return two rows.</p>
  
  <p><strong>query:</strong> </p>
  
  <pre><code>    SELECT A.first_year_school, A.last_year_school, A.grade, U.university, C.course, T.type_course
      FROM single_user_has_university_has_course A
  
      INNER JOIN university_has_course Q
      ON A.university_has_course_course_id_course  = Q.course_id_course
  
      INNER JOIN university U
      ON Q.university_id_university  = U.id_university 
  
      INNER JOIN course C
      ON Q.course_id_course = C.id_course
  
      INNER JOIN type_course T
      ON C.type_course_id_type_course = T.id_type_course
  
      AND A.single_user_users_id_user = ?
  </code></pre>