/**
* Returns list of previous questions.
*/
public List<Question> findPreviousQuestions(Question q, int howMany) {
DbOomQuery dbOom = query(sql("select $C{q.*} from $T{Question q} where $q.date < :date order by $q.date desc limit 0,:howMany"));
dbOom.setInteger("date", q.getDate());
dbOom.setInteger("howMany", howMany);
return dbOom.autoClose().list(Question.class);
}