$params = [
'currency' => 'RUB',
'amountFraction' => 0,
'extra' => [
'\'account\'' => $request['wallet'],
'\'comment\'' => $this->generatePaymentDescription($payment['payment_id']),
],
'amountInteger' => $payment['amount'],
'blocked' => [
'sum', 'comment', 'account',
],
];
SELECT * FROM `news` WHERE (`recipient` = 'user' OR `recipient` = 'all') AND `id` NOT IN (SELECT `id_news` FROM `viewed_news` WHERE `id_user` = '1') ORDER BY `news`.`date` DESC