Fixing an error when using mysqli