fix missing AND in query

Change-Id: I6ed03551e09d513f2824d5cc22cce0dacdff7d1d
Related-Bug: #1304119