public ResultSet PreparedQuery(String query, String[] params) {
		PreparedStatement ps;
		
		if (!IsConnected) { return null; }
		
		try {
			ps = Conn.prepareStatement(query);
			// Construct PreparedStatement by adding all supplied params to the query
			plugin.Debug("SQL Query: " + query);
			for (int x=0; x < params.length; x++) {
				plugin.Debug("Param " + (x+1) + ": "+ params[x]);
				ps.setString(x+1, params[x]);
			}
			return ps.executeQuery();
		} catch (SQLException e) {
			plugin.Warn("Prepared query execution failed!");
			plugin.Log("SQL: " + query);
			e.printStackTrace();
			return null;
		}
	}