Hola,
Gracias por responder he probado hacer lo que dice el post
y me da el sig.error
Invalid query you have an error in your SQL syntax, check the manual that correspond to your MYSQL server version for the right syntax to use near "LIMIT 0,7" at line 1
Yo he puesto lo siguiente:
$consulta=("SELECT * FROM diario ORDER BY id DESC LIMIT 1,1");
CON EL ERROR ELENCADO ARRIBA