Stringsql="SELECT e.DEVICE_ID, e.OWNER, e.STATUS AS DEVICE_STATUS, d.NAME AS DEVICE_NAME, e.DEVICE_TYPE AS DEVICE_TYPE, e.DEVICE_IDENTIFICATION AS DEVICE_IDENTIFICATION "+
"FROM DM_ENROLMENT e "+
"JOIN DM_DEVICE d ON e.DEVICE_ID = d.ID "+
"WHERE e.OWNER = ? AND e.TENANT_ID = ?";
"WHERE e.OWNER = ? AND e.TENANT_ID = ? AND e.STATUS IN ("+deviceFilters.toString()+")";