Maria Diaz/ZDNETTwo weeks ago, reports began appearing of an unusual iPhone and iPad bug. Following Apple’s iOS 17.5 and iPadOS 17.5 updates, photos that users had deleted years earlier were resurfacing, even on devices that users had wiped clean.Last week, Apple issued a patch, which the company said “provides important bug fixes and addresses a rare issue where photos that experienced database corruption could reappear in the Photos library even if they were deleted.” The bug only affected a small number of users and a small number of photos, Apple said, but for those users, it was pretty unsettling.Also: How to transfer data from Android to an iPhone: 2 quick and simple waysWhile Apple initially blamed the issue on “database corruption,” the company is now explaining more precisely what caused the problem.Speaking to 9to5Mac, Apple elaborated that the issue wasn’t with iCloud Photos, but with the databases on the devices themselves. In short, the restored photos were ones not synced to the cloud. When a device was restored from a backup — or from a device-to-device transfer — some of those photos were restored as well (from the device backup, not from iCloud). More