Manually merged commit 5a49b98

Improved performance by reducing the number of mysql queries.

https://github.com/koehn/selfoss/commit/5a49b98ba0c88a62c33165ed562dc029955806f1