
		UPDATE email_queue, project
		SET email_queue.active = 'Inactive',
		sent = '1111-11-11 11:11:11'
		WHERE (sent IS NULL OR sent < '1000-01-01')
		AND email_queue.active = 'Active'
		AND email_queue.project = project.id
		AND project.status IN ('Begun', 'Complete')
		AND resource IS NOT NULL AND resource <> ''
	