SP parameters removed from where clause