A harnack inequality for liouville-type equations with singular sources