I'm having rows in the table which I intend to delete in MySQL:
delete from image_shout
where auto_id in
(
select s.auto_id
from image_shout s
left join images i on s.image_id = i.image_id
where i.image_id is null
);
For doing this I get an error:
Error Code: 1093. You can't specify target table 'image_shout' for update in FROM clause