$postdb = Posts::find(['login_id' => $id, 'type'=>'update'])->where(какая-то магия)->All();
$postdb = Posts::find(['login_id' => $id, 'type'=>'update'])
->where(['>=', 'some_date_column', new \yii\db\Expression('NOW() - INTERVAL 3 HOUR')])
->all();