If you are in SQL Server you likely need to use dynamic sql; that needs you to build your query up as a string then execute it when its complete
Change your empid declaration to
DECLARE @Empid VARCHAR(MAX) = 'SELECT * FROM cmsEmployee WHERE EmployeeID IN( '
When you have selected it add a close bracket (you could build the string up in steps if you want to.)
select @empid = @empid + ')'
If you take your print statement it should run when you have it right; to run it in your code
exec sp_exectutesql @empID