title: ActiveRecord Error Problem
body: <p>Can someone point me the error in this statement?</p>
  
  <pre><code>2011-08-19T20:16:05+00:00 app[web.1]: ActiveRecord::StatementInvalid (PGError: ERROR:  argument of AND must be type boolean, not type integer
  2011-08-19T20:16:05+00:00 app[web.1]: : SELECT "app_permissions".* FROM "app_permissions" WHERE (user_id = 1,2 AND is_shared = 't' AND app_id = '1')):
  2011-08-19T20:16:05+00:00 app[web.1]:
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>AppPermission.find(:all, :conditions =&gt; ["user_id = ? AND is_shared = ? AND app_id = ?", User.find_all_by_facebook_id(@friends_uids).collect { |itm| itm["id"] }, true, @appl_id])
  </code></pre>
  
  <p>Thanks</p>