Correctly join post meta to fix order searches Closes #4855