title: NHibernate join query throwing error
body: <p>I'm trying to implement a join query. I need to get the name of the column id</p>
  
  <pre><code>string hql = "select new TerminalStateReportItem(p.Ip, p.Error, p.Terminal_Id, p.Last_Activity, p.Current_Page, p.Ping, u.Name) from TerminalState p join User u on p.Terminal_Id=u.Id";
  var query = new SimpleQuery&lt;TerminalStateReportItem&gt;(hql);
  return query.Execute();
  </code></pre>
  
  <p>I receive an error</p>
  
  <blockquote>
    <p>Castle.ActiveRecord.Framework.ActiveRecordException: Could not perform ExecuteQuery for TerminalStateReportItem ---> NHibernate.Hql.Ast.ANTLR.SemanticException: Path expected for join! [select new TerminalStateReportItem(p.Ip, p.Error, p.Terminal_Id, p.Last_Activity, p.Current_Page, p.Ping, u.Name) from KioskServer.TerminalState.TerminalState p join User1 u on p.Terminal_Id=u.Id]</p>
  </blockquote>
  
  <p>My class wrapper</p>
  
  <pre><code>namespace KioskServer.Reports
  {
      [ActiveRecord]
      public class TerminalStateReportItem
      {
          public TerminalStateReportItem()
          {
          }
  
          public TerminalStateReportItem(string ip, string error, int terminalId, DateTime lastActivity, string currentPage, int ping, string name)
          {
              Ip = ip;
              Error = error;
              Terminal_Id = terminalId;
              Last_Activity = lastActivity;
              Current_Page = currentPage;
              Ping = ping;
              Name = name;
          }
  
          [PrimaryKey]
          public string Ip { get; set; }
          public string Error { get; set; }
          public int Terminal_Id { get; set; }
          public DateTime Last_Activity { get; set; }
          public string Current_Page { get; set; }
          public int Ping { get; set; }
          public string Name{ get; set; }
      }
  }
  </code></pre>
  
  <p>my class table</p>
  
  <pre><code>namespace KioskServer.TerminalState
  {
      [ActiveRecord("terminal_state")]
      public class TerminalState
      {
          public TerminalState(){
          }
  
          public TerminalState(string ip, string error, int terminalId, DateTime lastActivity, string currentPage, int ping)
          {
              Ip = ip;
              Error = error;
              Terminal_Id = terminalId;
              Last_Activity = lastActivity;
              Current_Page = currentPage;
              Ping = ping;
          }
  
          [PrimaryKey]
          public string Ip { get; set; }
          [Property]
          public string Error { get; set; }
          [Property]
          public int Terminal_Id { get; set; }
          [Property]
          public DateTime Last_Activity { get; set; }
          [Property]
          public string Current_Page { get; set; }
          [Property]
          public int Ping { get; set; }
      }
  }
  </code></pre>
  
  <p>without joining all works normally. maybe because my classes are in different folders?</p>
  
  <pre><code>namespace KioskServer.Data.Users
  {
      [ActiveRecord("users",
          DiscriminatorColumn = "usertype",
          DiscriminatorType = "string",
          DiscriminatorValue = "user")]
      public class User : Entity
      {
          [Property]
          public string Name { get; set; }
  
          [Property]
          public string Login { get; set; }
  
          [Property]
          public string Password { get; set; }
  
          [Property]
          public DateTime Date { get; set; }
  
          [BelongsTo]
          public Dealer Dealer { get; set; }
      }
  }
  </code></pre>
  
  <p>I do a query</p>
  
  <pre><code>string hql = "select new TerminalStateItem(p.Ip, p.Error, p.Terminal_Id, p.Last_Activity, p.Current_Page, p.Ping, u.Name) from TerminalState p join p.User u";
  </code></pre>
  
  <p>error</p>
  
  <pre><code>NHibernate.QueryException: could not resolve property: User of: KioskServer.TerminalState.TerminalState [select new TerminalStateItem(p.Ip, p.Error, p.Terminal_Id, p.Last_Activity, p.Current_Page, p.Ping, u.Name) from KioskServer.TerminalState.TerminalState p join p.User u]
  </code></pre>