Non puoi semplicemente usarlo?
SELECT `date` FROM staff WHERE `date` < NOW() ORDER BY `date`
oppure (se hai bisogno solo di date diverse)
SELECT DISTINCT `date` FROM staff WHERE `date` < NOW() ORDER BY `date`
Non puoi semplicemente usarlo?
SELECT `date` FROM staff WHERE `date` < NOW() ORDER BY `date`
oppure (se hai bisogno solo di date diverse)
SELECT DISTINCT `date` FROM staff WHERE `date` < NOW() ORDER BY `date`