Fix query for bug 1303802

Was missing the AND so this was hitting on everything.

Related-Bug: #1303802

Change-Id: I017978e8d4705004e4abfd1f4059e4c96e34e724