Kan du ikke bare bruge dette?
SELECT `date` FROM staff WHERE `date` < NOW() ORDER BY `date`
eller (hvis du kun har brug for forskellige datoer)
SELECT DISTINCT `date` FROM staff WHERE `date` < NOW() ORDER BY `date`
Kan du ikke bare bruge dette?
SELECT `date` FROM staff WHERE `date` < NOW() ORDER BY `date`
eller (hvis du kun har brug for forskellige datoer)
SELECT DISTINCT `date` FROM staff WHERE `date` < NOW() ORDER BY `date`