Mysql: Table 'name' is specified twice, both as a target for 'UPDATE' and as a separate source for d

NoSuchKey