Periodic solutions of scalar second order differential equations with a singularity