Fixed HQL query bug in UserLogDao