Código PHP:
"SELECT * FROM mensajes WHERE (dia >= '$dia' AND votos != 0) LIMIT 20 ORDER BY votos DESC";
Cita:
Acaso no se puede colocar tres filtros a una sola consulta? Cuando elimino "ORDER BY votos DESC" funciona.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY votos DESC' at line 1
Muchas gracias de antemano.