unset variable $table

$table is unset here, $this-> is missing