I'm trying to update several BLOB fields from a value stored in another row in the same table:
UPDATE users SET user_permissions = (
SELECT user_permissions
FROM users
WHERE user_id=1
)
WHERE user_id IN (3,4,5)
But this is failing with the following error:
[Err] 1093 - You can't specify target table 'users' for update in FROM clause
Is there a way to accomplish this?