public static boolean tableContainsColumn(String tableName,
			String columnName) {

		try {
			if (conn == null || conn.isClosed())
				open();
			statement = conn.createStatement();
			ResultSet rs = statement.executeQuery("SELECT `" + columnName
					+ "` FROM `" + tableName + "` LIMIT 1");
			if (rs == null) {
				close();
				return false;
			}
			close();
		} catch (SQLException e) {
			if (e.getMessage().contains("no such column: " + columnName)) {
				return false;
			}
			plugin.getLogger().severe(
					"Error check table columns in '" + tableName + "'!");
			e.printStackTrace();
		}
		return true;
	}