Definitivamente concatenas mal
Código SQL:
Ver original"INSERT INTO `smf_members` (real_name, passwd, member_name, id_post_group, email_address) VALUES ('Samuel', '".sha1
(strtolower
($username
) . $password
)."', 'Samuel', '4', '[email protected]')"