You can't specify target table 'a' for update in FROM clause

NoSuchKey