@ -329,10 +329,13 @@ function painelTotalContatos($dbcon, $status = null)
$sql .= " and id_camp = {$status}"; //mudei
}
$sql .= "order by 1";
$sql .= " order by 1";
file_put_contents(PATH_LOG, "\nQuery da campanha: $sql\n", FILE_APPEND);
$result = pg_query($dbcon, $sql);
$resp = pg_fetch_all($result);
return $resp;