LPS-46501 Add plid to where clause