status='ESIG' and (res_id,@user) IN (SELECT res_id, item_id FROM listinstance WHERE item_mode = 'sign' and process_date ISNULL and res_view_letterbox.res_id = res_id order by listinstance_id asc limit 1)