duplicate column issue fixed in sql.