Messaggio di MySQL:

#1064 - You have an error in your SQL syntax near '
old_comprofiler SET mos_comprofiler.avatar = old_comprofiler.avatar WHERE mos_c' at line 1

non è che è necessario usare JOIN?
tipo (mi da errore di sintassi anche questo)
codice:
UPDATE old_comprofiler JOIN mos_comprofiler ON old_comprofiler.user_id = mos_comprofiler.user_id SET mos_comprofiler.avatar = old_comprofiler.avatar
WHERE mos_comprofiler.user_id = old_comprofiler.user_id