0 and `delete` = 0 union all select data from eff_users where uid = ? and `delete` = 0'; $iData = $db::getColumn($q, [$userId, $userId]); $params = []; foreach ($iData as $datum) { foreach (explode('|', $datum) as $inner) { list($a, $b) = explode('=', $inner); if (strpos($a, 'add') !== false || strpos($a, 'sv') !== false || $showAll) { if (isset($params[$a])) { $params[$a] += $b; } else { $params[$a] = $b; } } } } return $params; } }