Qualcosa del genere dovrebbe funzionare:
codice:SELECT *, validita > NOW() AS test FROM news ORDER BY test DESC, validita DESC
Qualcosa del genere dovrebbe funzionare:
codice:SELECT *, validita > NOW() AS test FROM news ORDER BY test DESC, validita DESC