title: QUERY NOT EXECUTED IN SQL (WHERE CLAUSE)
body: <pre><code>$courseArr = $this-&gt;query('
               SELECT  courses.*,modules.* 
               FROM courses 
               INNER JOIN student_courses
               ON student_courses.student_id = "'.$student_id.'" 
               AND courses.id=student_courses.course_id  
               INNER JOIN modules 
               ON modules.course_id=courses.id 
               AND WHERE courses.course_title like "$search%" ;
               ');
  </code></pre>