Sorry, but I still think you are wrong.
You said you "tried and it didn't update". *WHAT* did you try.
You should have changed your PHP code to something like this:
Code:
$sql="UPDATE {$this->tableNameDB} SET alias = '{$newalias}' WHERE id = {$id}";
See the apostrophes around {$newalias}??
I have to ask: WHY do you need to use {$this->tableNameDB}? SURELY you don't have multiple tables that this same query could be applied to?