How to map the query String result to a custom object(model) in sqlalchemy and django?
<p>I want to return result in to custom model(class) but I got this error message:</p>

<blockquote>
  <p>SQL expression, column, or mapped entity expected </p>
</blockquote>

<p>I don't know where I went wrong.</p>

<pre><code> connect = Connector()
 Session = sessionmaker(bind=connect.ConnectorMySql())
 ses = Session()
 query = u"""
      SELECT
           `reports`.ID As 'ID',
            reports.Title AS 'ReportTitle',
           `reports`.Text as 'ReporText',
           `reports`.Status as 'Status',
           `user`.ID AS 'ReporterID',
           `user`.Name as 'ReporterName' ,
           `user`.Username as 'ReporterUserName',
           `user`.ImageProfile as 'ReporterAvatar',
           `Clinet`.ID AS 'ClinetID',
           `Clinet`.SiteUserName AS 'ClinetUserName',
           `Clinet`.ImageProfile as 'ClinetAvatar'
      FROM reports
      JOIN Clinet  on reports.ClinetID = `Clinet`.ID
      JOIN users user on reports.UserID = `user`.ID
      where
           :pClinetID IS NULL OR reports.ClinetID=:pClinetID
      AND
           :pStatus IS NULL OR reports.Status=:pStatus;
 """
 QueryResult=CustomModel()
 QueryResult=ses.query(CustomModel).from_statement(query).all()   

 return QueryResult
</code></pre>