SELECT T1.tel_id, T1.sum1, T2.sum2
FROM
(SELECT tel_id, sum(money) AS sum1
FROM accounts
WHERE date >= CURDATE() AND tel_id = 1234 AND type = 1 AND status = 1
) T1,
(SELECT tel_id, sum(money) AS sum2
FROM accounts
WHERE date >= CURDATE() AND tel_id IN (1542, 6624, 2524) AND type = 1 AND status = 1
) T2
WHERE T2.tel_id = T1.tel_id
var it_last;
function toggle(it) {
if ((it_last)&&(it!=it_last)) {// скрытие предыдущего
it_last.style.display = "none";
}
it.style.display= (it.style.display=="none") ? "block" : "none";
it_last = it;
}
<span onclick="toggle(document.getElementById('hide1'))">
Москва
</span>
<div id="hide1" style="display:none; z-index: 9999; position: absolute; margin-left: 10px; bottom: 80%; width: 400px; height: 100px; background-color: rgba(134, 117, 80, .7); border-radius: 50px">
Адрес в Москве
</div>
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.
RewriteRule (.*) https://site.ru/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .* - [L]
RewriteRule .* ./index.php [L,QSA]
RewriteCond %{HTTP_HOST} ^www.site.ru$ [NC]
RewriteRule ^(.*)$ http://site.ru/$1 [R=301,L]
masItems.forEach(function(item, i, arr) {
masItems[i].hover(function() {
console.log(masItems[i]);
});
});