AS SELECT DISTINCT 
	DDCLElement.Id, 
	DDCLSourceInfo.StartRow, 
	DDCLSourceInfo.EndRow, 
	DDCLSourceInfo.StartCol,
	DDCLSourceInfo.EndCol,
	Paths.PathStr 
FROM DDCLElement 
	LEFT JOIN DDCLSourceInfo ON DDCLElement.SourceInfo=DDCLSourceInfo.Id 
	LEFT JOIN Programs ON DDCLSourceInfo.ProgramId=Programs.ProgramID 
	LEFT JOIN Occurrences ON Programs.OccurID=Occurrences.OccurID 
	LEFT JOIN Paths ON Occurrences.PathID=Paths.PathID 
WHERE  (DDCLElement.Id IN (SELECT * FROM #numeric_param_temp)) 
ORDER BY DDCLElement.Id 