i've never had this happen before, so i'm highly confused...did something change in the way mysql orders results when using limit? my webhost is running 4.0.18, but i've recently been developing locally using 3.23.57.
(edit: this can't be a difference in versioning, as i've now just upgraded to mySql 4.1 and am experiencing the same behavior.)
in a usertable showing all users by ID, i have my testing accounts:
hedgehog
administrator
god
visitor
beth
fooli
user
test
mitch
peter
an example query:
$connection->queryString("SELECT * FROM $usertable ORDER BY username ASC LIMIT 0,6");
this returns:
hedgehog
god
fooli
beth
administrator.
i expect it to return:
[edit: updated expected return after sanam pointed out i'd typed the wrong order for that sort 🙂]
administrator
beth
fooli
god
hedgehog
sorting by my last_logged and member_since fields, it seems apparent that mysql is processing only the limited selection when ordering its results.
i've never experienced this behavior before, it's always ordered the table then extracted a limited selection based on what's returned.