Invalid object name sql. I'm creating a temporary table called #PrevStatus.

Invalid object name sql. ID4 = '333333' AND T1.