UPDATE user SET
tw_oauth_token=(SELECT tw_oauth_token FROM user WHERE id=27),
tw_oauth_token_secret = (SELECT tw_oauth_token_secret FROM user WHERE id=27),
tw_user_id = (SELECT tw_user_id FROM user WHERE id=27),
handler = (SELECT handler FROM user WHERE id=27),
merged=1 WHERE id=26
The idea is to select data from user table where id = 27 and update the same table where id = 26.
I am having the following error:
#1093 - You can't specify target table 'user' for update in FROM clause
Any help would be appreciated. Thanks