Figure out why you were miserable at your last job. The same things will cause you to be miserable at anything you do.