Fixed query in new sessions count script