Removing calls to mysqli::get_result()