It should only have been missing one cause it was causing errors. This was the original...
Code:
$getuser = $DB_site->query_first("
SELECT *
FROM " . TABLE_PREFIX . "user
WHERE " . TABLE_PREFIX . "username = '" . $username . "'
");
but since that would make it vb3_username - that is wrong, at least for me anyhow.
and for some reason the
Code:
DELETE *
FROM maf_application
WHERE userid = $getuser[userid]
wouldn't work for me so I had to remove the '*' (also from the line after this)
But as long as it works, I'm happy