Fixed array membership test
Use first result of query