$r = connectdbpdo()->prepare("SELECT tb1.user_login, tb2.id_blog, tb2.login_user FROM users tb1, blogs tb2 WHERE tb1.user_login = ? AND tb2.login_user = tb1.user_login");
$r->execute(array($_GET['login']));
{"user_login":"1","blogs":[
{"id_blog":"11",},
{"id_blog":"10"},
{"id_blog":"9"}
]
}
{"user_login":"1","blogs":""}