SQLSTATE[42804]: Datatype mismatch: 7 ERROR: argument of AND must be type boolean, not type integer LINE 1: ...d_judet = c3.id_judet WHERE (c.id_cont = 2698 AND c.id_medic... ^