NitroXy/import-test — Issue #110: Ticket::create() misslyckas med att skapa biljetter - MySQLi error: 2014 (Commands out of sync; you can't run this command now).
Author: ext
Created: 2012-01-28 21:15:56+00:00
State: open

```
Automatically imported from Trac.
Originally reported by 'slafs' as #108.
```

Jag försöker köpa en (1) biljett till mig själv och får följande fel:

```
MySQLi error: 2014 (Commands out of sync; you can't run this command now).
The attempted query was

INSERT INTO tickets (number,order_id,owner) VALUES (?,?, ?);

The error was encountered in /Users/slafs/Sites/svn/nitroxy-unstable/classes/Ticket.php:255

#0 UltimateDatabaseConnection->prepare_full(INSERT INTO tickets (number,order_id,owner) VALUES (?,?, ?);, , sii, NXDBF198B8EE, 61, 2) called at [/Users/slafs/Sites/svn/nitroxy-unstable/classes/Ticket.php:255]
#5 Ticket::create(61, petter@nitroxy.com) called at [/Users/slafs/Sites/svn/nitroxy-unstable/classes/Order.php:407]
#6 Order->create_ticket(petter@nitroxy.com) called at [/Users/slafs/Sites/svn/nitroxy-unstable/content/main/buy_tickets.php:111]
#5 require(/Users/slafs/Sites/svn/nitroxy-unstable/content/main/buy_tickets.php) called at [/Users/slafs/Sites/svn/nitroxy-unstable/content/mainpage.php:12]
#6 require_once(/Users/slafs/Sites/svn/nitroxy-unstable/content/mainpage.php) called at [/Users/slafs/Sites/svn/nitroxy-unstable/public/index.php:31]

Kunde inte förbereda databas-förfrågan. Administratörerna känner till problemet, men kontakta oss gärna om du vill!
```