SQLSTATE[42804]: Datatype mismatch: 7 ERROR: argument of AND must be type boolean, not type bigint LINE 1: ...IN dictionary_terms d ON d.id = m2.term_id WHERE (m.parent_i... ^