title: order by clause is breaking Anorm select query in Play 2.1.2
body: <p>I have the following code in Play 2.1.2</p>
  
  <pre><code>def list(startDate:String, endDate:String,  page:Option[Int], pageSize:Option[Int] ) = {
      DB.withConnection { implicit connection =&gt;
          val c = SQL("""
                select 
                  employeeId,
                  CertType, 
                  ct.name, 
                  applicable,
                  due,
                  year(due) as yeardue,   month(due) as monthdue, day(due) as daydue, 
                  year(completed),     month(completed),     day(completed), 
                  year(last),       month(last),       day(last), 
                  status 
                from cert 
                join certtype ct on CertType=ct.code
                where due&lt;{endDate} and due&gt;{startDate} and CertType not in (500,600)
                order by due
              """ 
            )
            .on('index -&gt; page, 'pageSize -&gt; pageSize , 'startDate -&gt; startDate, 'endDate-&gt;endDate)().collect{
              case Row(  
                    employeeId:Long,
                    certType:Int, 
                    name:String, 
                    applicable:Int,
                    Some(due:java.sql.Date),
                    Some(yeardue:Long),      Some(monthdue:Long),     Some(daydue:Long),
                    Some(yearcompleted:Long),  Some(monthcompleted:Long),   Some(daycompleted:Long),
                    Some(yearlast:Long),    Some(monthlast:Long),     Some(daylast:Long),
                    status:Long) =&gt;
                    Reminder(
                        employeeId, 
                        certType, 
                        name,  
                        if (applicable&gt;0) true else false, 
                        makeDate(yeardue,    monthdue,    daydue),  
                        makeDate(yearcompleted,  monthcompleted,  daycompleted),  
                        makeDate(yearlast,    monthlast,    daylast),  
                        status);
          }
          c.toList
      }
  }
  </code></pre>
  
  <p>The only way this works is if I remove the 'order by' clause.<br>
  Order by will work only with a string field like ct.name.
  Otherwise, the list is empty.</p>
  
  <p>I have no error messages from this, just a blank list.</p>