title: Missing FROM-clause entry for table?
body: <p>When I select a specific field from a table in a has-many relationship I get an exception like this: <code>org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry for table \"bar\"</code> </p>
  
  <p>Here are the relationships I have defined: </p>
  
  <pre><code>(declare foo bar)
  
  (korma/defentity foo
                   (korma/pk :token)
                   (korma/database db)
                   (korma/table :foo)
                   (korma/has-many bar {:fk :token}))
  
  (korma/defentity bar
                   (korma/pk :token)
                   (korma/database db)
                   (korma/table :bar)
                   (korma/belongs-to foo {:fk :token}))
  </code></pre>
  
  <p>Here is the query I am generating in sqlkorma:</p>
  
  <pre><code>(defn fetch []
    (-&gt;
      (korma/select* foo)
      (korma/with bar)
      (korma/fields :foo.token :bar.col)
      (korma/exec)))
  </code></pre>
  
  <p>If I select all the fields using with <code>*</code> then the query runs with no problem. However, I would like to specify which fields I want to select, what am I doing wrong?</p>