Bare konverter din sætning i forespørgslen:
(find) (the lowest imageID) (where the other two columns = 0) [SELECT] [MIN(imageID)] [WHERE Processing = 0 AND Finished = 0]
Så din fulde forespørgsel bør være (ved hjælp af MIN() aggregeret funktion):
SELECT MIN(ImageId) as LowestImageId
FROM Mytable
WHERE Processing = 0
AND Finished = 0