May want to add a space between the {0} and the SQL.  This is me assuming there's no space at the end of TracePrefix