如何选择字段但首先过滤 1 或 2 个其他字段
aid bid cid
0 1 0
1 2 1 <--- this row get aid
2 0 2 <--- not this row
// this only filter 1 field
$sth = $db->prepare("SELECT MAX(aid) as aid FROM tb");
$sth->execute();
$row = $aid->fetch(PDO::FETCH_ASSOC);