Ensure there is an index on {users}.picture.
function user_update_7018() { if (!db_index_exists('users', 'picture')) { db_add_index('users', 'picture', array( 'picture', )); } }