News::find()->where(['category_id' => $id])->with('comments')->with('photos')->asArray()->limit(10)->all()
$result = mysqli_fetch_assoc($res)
$mail->clearAddresses();
$data = User::find()->select(['FROM_UNIXTIME(created_at, "%Y-%m-%d") as date', 'COUNT(id) as value'])->where(['FROM_UNIXTIME(created_at, "%m")' => $month])->groupBy(['FROM_UNIXTIME(created_at, "%d")'])->asArray()->all();