{$table_alias} instead of $table_alias?
4 hits in this file for: $table_alias{$mode}