The database was COMPLETE SHIT. I'm redoing it in dbamf.php