while ( $videos = mysqli_fetch_assoc($videos) )
while ( $row = mysqli_fetch_assoc($videos) )
$videos_res = mysqli_query($connection, "SELECT * FROM `videos` ORDER BY `id` DESC LIMIT 20");
while ( $videos = mysqli_fetch_assoc($videos_res) )
F="asd";
Q="SELECT *
FROM blabla.users s
LEFT JOIN auth.users u on s.userId = u.userId
WHERE
s.userId is not NULL and
not( (u.email like \"test@%\" OR u.email like \"a@%\") ) and u.deactivated is NULL
INTO OUTFILE '/home/blalba/$F.csv'
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n';
"
echo "$Q"