$arr = $_POST['logins']?? '';
$escaped_nk = array_map(function( $e ) {
global $db;
return mysqli_real_escape_string($db, $e);
}, $arr );
$query = "SELECT * FROM `users` WHERE `login` IN(".implode(', ', $escaped_nk).")";
$query = "SELECT * FROM `users` WHERE `login` IN(".implode(', ', $escaped_nk).")";
echo $query;
SELECT * FROM `users` WHERE `login` IN(MarkBoSS, strike_noob, Жорка, vitXa)
SELECT * FROM `users` WHERE `login` IN('MarkBoSS', 'strike_noob', 'Жорка', 'vitXa')
$in = "'".implode("','", $array_logins)."'";
"SELECT * FROM `users` WHERE `login` IN($in)";