Fixed ordering and sql queries and a bunch of stuff in notifs and newsfeed.
it only reuires 1 sql call now :)