[B]
-------------------------------------------------------
SELECT top 10 id,titolo,testo,cod_cat,cod_sottocat FROM mod_archivio_file
WHERE cast(dataAvvio as unsigned) <= 20050405 AND cast(dataStop as unsigned) >= 20050405
ORDER BY dataAvvio
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 '10 id,titolo,testo,cod_cat,cod_sottocat FROM mod_archivio_file W...
-------------------------------------------------------
Prova a mettere la lista dei campi tra parentesi