set @query=@query+ 'cast(ID as varchar) like ''%'+ltrim(@id)+'%'''
set @query=@query+ @option+' userName like ''%' +ltrim(@name)+'%'''
set @query=@query+ @option+' cast(referrer as varchar) like ''%'+ltrim(@ref)+'%'''
set @query=@query+ @option+' age=cast(@age as int) '