Fix to employee dao: where conditions on the joins should be subqueries so it doesn't filter the final result.