One thing you'll want to make sure of, that you have MySQL 4.0.4 or later. The manual I'm looking at online says that's when multi-table UPDATE was implemented.

I'm not entirely sure, but you might have a problem with the multi-table UPDATE not knowing which table 'alias', 'real_name' or 'align' are supposed to be in. (ie, 1.alias, or m.alias) Everything else in the line (repeated below) is defined.