Fixed mysqli->get_result function across site.
Other misc changes.