Update "includes/function.php". Replace deprecated "context_instance_preload_sql", add "f.id" to the fields in the query in get_files.

Add "f.id" to the fields in the query in get_files because "f.contenthash" could return identical entries.