44 |
if (! defined($print_only_id)) { |
if (! defined($print_only_id)) { |
45 |
$sql="select osoba_id,max(status_tip_id) from status where osoba_id > $last_print_id group by osoba_id"; |
$sql="select osoba_id,max(status_tip_id) from status where osoba_id > $last_print_id group by osoba_id"; |
46 |
} else { |
} else { |
47 |
$sql="select osoba_id,status_tip_id from status where osoba_id=$print_only_id and status_tip_id=3"; |
$sql="select osoba_id,status_tip_id from status where osoba_id in ($print_only_id) and status_tip_id=3"; |
48 |
} |
} |
49 |
|
|
50 |
$sth = $dbh->prepare("$sql") || die "$sql ",$dbh->errstr(); |
$sth = $dbh->prepare("$sql") || die "$sql ",$dbh->errstr(); |