How MySQL Optimizes LIMIT

In some cases MySQL will handle the query differently when you are using LIMIT row_count and not using HAVING: