Which one comes first when MySQL processes the query?
An example:
SELECT pageRegions FROM pageRegions WHERE(pageID=?) AND(published=true) AND (publis
Yes, it's after the ORDER BY. For your query, you'd get the record with the highest publishedOn, since you're ordering DESC, making the largest value first in the result set, of which you pick out the first one.
DESC