Fixed #261: Problem in a query in the class JobExecutionBean.