leatherback wrote:ok, fair enough.
Same solution though:
select * where day>day and month > month order by month, day limit 1
Sorry, but this won't work. If you have the event the 10th it won't pick up an event the 5th next month. This should work, as long as you don't think about changing year:
select * where (month = month and day > day) or (month > month) order by month, day limit 0, 1
Of course, if you don't get any result you can always run this query to get the first result of the year:
select * order by month, day limit 0,1