title: Mysql2::Error: Unknown column in where clause Rails
body: <p>I receive an error of </p>
  
  <pre><code>Mysql2::Error: Unknown column 'requests.access_level_id' in 'where clause': 
  SELECT `requests`.* 
    FROM `requests` LEFT OUTER JOIN `users` ON `users`.`id` = `requests`.`from_id` 
    WHERE `requests`.`access_level_id` = 1 
    ORDER BY id DESC
  </code></pre>
  
  <p>Model</p>
  
  <pre><code>class Request &lt; ApplicationRecord
    belongs_to :user, foreign_key: :from_id
  end
  </code></pre>
  
  <p>Controller </p>
  
  <pre><code>@req = Request.left_outer_joins(:user).where(access_level_id: 1).order('id DESC')
  </code></pre>
  
  <p>How can I remove requests from the <code>WHERE clause requests.access_level_id = 1</code>? I just want <code>access_level_id = 1</code> to be in the where statement.</p>