Sometime between yesterday and this June my hosting provider must have updated their MySQL since the following query now yields a different result than before.
I use the query as part of a union, but I have only copy/pasted the none working part - if you wonder why I'm using derived a table.
Select * from (SELECT c.SeatNum FROM signups c where c.SeatNum <= 5 ORDER BY c.SeatNum asc) d1
Earlier this query would give me the result of:
1
2
3
4
5
Now it in stead gives me:
2
5
1
3
4
If I just do a "SELECT c.SeatNum FROM signups c where c.SeatNum <= 5 ORDER BY c.SeatNum asc"
I again get:
1
2
3
4
5
Why does using a derived table all of a sudden mix up my ordering - and what can I do to prevent it?