local safeusername = mysql:escape_string(username)local safepassword = mysql:escape_string(password)local query if (autologin) then query = \"SELECT * FROM `accounts` WHERE `username`=\'\" .. safeusername .. \"\' AND `loginhash`=\'\" .. safepassword .. \"\'\"else query = \"SELECT * FROM `accounts` WHERE `username`=\'\" .. safeusername .. \"\' AND `password`=\'\" .. safepassword .. \"\'\"end