codice:
UPDATE prenotaz_pre 
SET stato_pre = 5
WHERE stato_pre = 4 AND data_pre < curdate()";

mysql_query($query) or die (mysql_error());
perche' vuoi fare una subquery ???