A man who hit two people after deliberately mounting the pavement outside a nightclub in Rawtenstall has been jailed.