mysqli_stmt_close was called before mysqli_error