hi please help in solving this

i am recieving this error"Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression."

for the code



CREATE procedure [dbo].[ADI_spfrmGetLog Entries]
(@frmMasterID int,
@startDate datetime,
@endDate datetime,
@startPos...