The following NamedQuery is giving a parsing error in Eclispelink . please help
@NamedQuery(name = "OaaFlexrolesUnitT.findFlexRolesAvailableUsers", query = "select c.netId,a.emplname from IsiEdbBasT a,NyuEdbEmpT b,OaaUserRolesT c where a.emplid=b.emplid and a.emplstat <> 'X' and a.orgid = ' ' and a.qtrno = 0 and a.orgid = b.orgid and a.qtrno = b.qtrno and b.netid = c.netId and c.roleId = :role1 and c.netId not in (select netid from OaaFlexrolesUnitT where unit = :unit and division = :division and roleId = :role2)")