Missing table prefix in query condition

Change-Id: Idc838d49de969d878ee4661c1927b87152a7c35b