SELECT 
 * 
 
FROM 
 `visit` 
 
WHERE 
 NOT( ( `username` IS NULL ) OR ( `username` = '' ) );