$pdo_link->setAttribute(PDO::ATTR_EMULATE_PREPARES, FALSE);
$stm = $pdo_link->prepare("SELECT `id`, `name`, `url`, `address` FROM `cpl_offices` WHERE `url` LIKE ? AND `bank_id` IS NULL AND `mfo_id` IS NULL AND `del` IS NULL LIMIT ?, ?");
$offices = $stm->execute([$url_like, $limit_from, $per_page]);
while ($office = $offices->fetch()) {
$pdo_link->setAttribute(PDO::ATTR_EMULATE_PREPARES, FALSE);
$stm = $pdo_link->prepare("SELECT `id`, `name`, `url`, `address` FROM `cpl_offices` WHERE `url` LIKE ? AND `bank_id` IS NULL AND `mfo_id` IS NULL AND `del` IS NULL LIMIT ?, ?");
$stm->execute([$url_like, $limit_from, $per_page]);
while ($office = $stm->fetch()) {