As discussed, the same LIKE is being used by `fetchImageAttributesByFilepath()` N  (alias count * related file/attributes in eZImageFile) times.
This JOIN should limit the result size enough that the LIKE will not become a problem (filepath, attribute id)