Yo he comprobado la siguiente select en mi servidor, y funciona correctamente:
SELECT * FROM mitabla WHERE DATE_FORMAT(fechahora,'%Y-%m-%d')>"2007-02-02"
fechahora tiene formato TIMESTAMP
Espero que te sirva. Un saludo
PDT: de todas formas, tienes un error en la siguiente sentencia,
por lo que te está funcionando incorrectamente:
Código PHP:
while($row = mysql_fetch_array($sql) {
que debería ser:
Código PHP:
while($row = mysql_fetch_array($result) {