A PHP Error was encountered

Severity: Warning

Message: Missing argument 1 for Catalog::bottle()

Filename: controllers/catalog.php

Line Number: 45

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: url

Filename: controllers/catalog.php

Line Number: 49


Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1] in EXECUTE("SELECT * FROM bottle WHERE url=?") ' in /var/www/watermap.ru/application/libraries/adodb/adodb-exceptions.inc.php:80 Stack trace: #0 /var/www/watermap.ru/application/libraries/adodb/adodb.inc.php(1040): adodb_throw('mysql', 'EXECUTE', 1064, 'You have an err...', 'SELECT * FROM b...', false, Object(ADODB_mysql)) #1 /var/www/watermap.ru/application/libraries/adodb/adodb.inc.php(1015): ADOConnection->_Execute('SELECT * FROM b...', false) #2 /var/www/watermap.ru/application/libraries/adodb/adodb.inc.php(1608): ADOConnection->Execute('SELECT * FROM b...', NULL) #3 [internal function]: ADOConnection->GetRow('SELECT * FROM b...', NULL) #4 /var/www/watermap.ru/application/libraries/Proxy.php(12): call_user_func_array(Array, Array) #5 /var/www/watermap.ru/application/models/bottle_model.php in /var/www/watermap.ru/application/libraries/adodb/adodb-exceptions.inc.php on line 80