private SqliteCursor findItemsWithCondition(Map<String, FieldDetails> conditions) throws SqlException{
		debug=true;
		String where = createWhereClause(conditions);
		if ((isDbOpen())&&(where.length()>0)){
			try {
				if (debug){
					if (Log.isDebug())Log.logMap(conditions);
				}
				SqliteCursor recordResults = table.lookupByWhere(where);
				return recordResults;
			} catch (SqliteException e) {
				throw new SqlException(SqlException.FAILED_READING_RECORDS);
			}
		} else if (!isDbOpen()){
			throw new SqlException(SqlException.ERROR_DB_FAILURE);
		} else if (where.length()==0) {
			if (Log.isDebug())Log.logMap(conditions);
			if (Log.isDebug())Log.logInfo(this, "validated values: 0");
			throw new SqlException(SqlException.ERROR_INVALID_TABLE);
		}
		return null;
	}