Oh, that's an easy one, I forgot to change the variable in mysql_query to $sql.