User sets the profile settings all alert to no and frds of that users posts and afterwards user changes the settings to yes and run the cron then previous post which frds of that user posted will come as notifications.That is no needed.Present post should come