It looks like an issue has been identified now that affects 4.6.x installations when using MySQL 4.1.21. I've logged this under 4.6.9 as that is what people should be using now but there are reports of it happening on earlier versions. Noone has yet reported it on 4.7.x as far as I can see.
The symptom is that the order of node teasers on the front page isn't sorted by DESC for users with the administration role. There was a bug fix in MySQL 4.1.21 that relates to ORDER BY and it looks like DESC is being discarded because the query is structured in a way that is not compatible with this version of MySQL.
I confess I don't know where to even look for the query involved but I was hoping people here could help.
This post on the MySQL forums describes what could be happening.
http://forums.mysql.com/read.php?20,106815,106923#msg-106923
Comments
Comment #1
Cromicon commentedAch. Someone posted this earlier and I didn't see it. I think I got more info though. ;-)
http://drupal.org/node/79217
Comment #2
Cromicon commentedAs the other issue has been altered from 4.6.9 to 4.7.3 this issue is now for 4.6.9
Relevant info can still be found on the other issue but those with 4.6.9 may as well post here with the info requested by webschick:
submitted by webchick on August 18, 2006 - 17:00
Could someone install and enable devel module and turn on query log and paste the difference in content queries between the anonymous user's view and the admin or whoever gets this difference view? It'll be something like:
SELECT [a bunch of fields] FROM node n INNER JOIN [a bunch of tables] ORDER BY n.created DESC
Comment #3
Cromicon commentedog enabled 4.6.9 admin view where order is not correct:
og enable 4.6.9 anonymous user view where correct:
Comment #4
Cromicon commentedSee http://drupal.org/node/79217 for a possible fix that needs testing. On initial testing this appears to work for 4.6.9 with OG. Your mileage may vary so backup the node.module before trying. It does look good though and props to unionweb for suggesting a possible fix.
Comment #5
Cromicon commentedNewly created nodes are not deletable. Do not try yet if with OG.
Comment #6
Cromicon commentedSeems to be okay now...maybe I had a weird caching issue but looks good so far using the fix unionweb proposed
Comment #7
magico commentedAs discussed in the other issue the problem happens with a mysql specific version.
This is not a Drupal bug, but a workaround was made to help some users.