in case of error this will fail as $result is an instance of MDB2_Error