SELECT fileUser FROM `images`
HAVING min(imageid) AND
WHERE (finished=0 and processing=0)
It seems a simple thing to get the fileUser index with the least imageID where finished and processing also = 0. But, I cannot seem to come up with a query that works? Any help would be great.
If you question is related to your previous question, then you can try this one:
See this SQLFiddle Demo