Update system/database/DB_query_builder.php

Added ar_join reset to _reset_write() as without it it causes error when using ...db->join()->update() and ...db()->join()->select() after that.