Improves algorithm for recommended posts sql search