SELECT wp_users.ID FROM wp_users LEFT JOIN wp_usermeta ON wp_users.ID = wp_usermeta.user_id WHERE meta_key LIKE 'wp_capabilities' AND meta_value LIKE '%suspended%' AND DATEDIFF(CURDATE(), wp_users.user_registered) >= 0
Admin, Author at Artificial Intelligence and Society