Made sure that primary type is an IN query