String sql = "SELECT deviceID, device, extension, callerID, isPrimary, userID " +
String sql = "SELECT deviceID, device, extension, callerId, isPrimary, userID " +
    public PhoneDevice getPrimaryDevice(long phoneUserID) {        String sql = "SELECT deviceID, device, extension, callerID, isPrimary, userID " +                "FROM phoneDevice WHERE userID = ? AND isPrimary = 1";        PhoneDevice device = null;        Connection con = null;        PreparedStatement psmt = null;        ResultSet rs = null;        try {            con = DbConnectionManager.getConnection();            psmt = con.prepareStatement(sql);            psmt.setLong(1, phoneUserID);            rs = psmt.executeQuery();            if (rs.next()) {                device = read(new PhoneDevice(), rs);            }        }        catch (SQLException e) {            Log.error(e.getMessage(), e);        }        finally {            DbConnectionManager.closeConnection(rs, psmt, con);        }        return device;    }