I'd shorten this line length by storing the "query":

```js
var query = {where: ["`email`=? OR `username`=?", username, username]};
learners.find(query)
  .success(function(user) {...})
  .error(function(err) {...})
```

(NOTE: also should handle the error case)