AS SELECT SqlTables.SqlTableID, SqlTables.TableName, Paths.PathStr , StartRow, EndRow, StartCol, EndCol 
  FROM SqlTables left join Occurrences on SqlTables.OccurID = Occurrences.OccurID
   left JOIN Paths on paths.PathID = Occurrences.PathID
   WHERE    
   (SqlTables.SqlTableID IN (Select * from #numeric_param_temp))
