Also, no need to escape your '.  Surround string with ":

".... : Type='%s'....."