Over 1000 people spent more than 12 hours on trollies in A&E at a Yorkshire hospital in December.