Hi thanks for all the previous help but i've figured it out.
This is the php/sql query i use now:
php:
$sql .= "\nDELETE FROM images WHERE plant_num = ".$_REQUEST['pid']." AND image_id IN (".implode(",",$removals).");";
query
DELETE FROM images WHERE plant_num = 2277 AND image_id IN (803,804,805);
I'm not sure why, but MySQL didnt seem to like when i put DELETE statements one after the other like that