object(ADODB_Exception)#28 (13) { ["dbms"]=> string(5) "mysql" ["fn"]=> string(7) "EXECUTE" ["sql"]=> string(108) "select * from galeria ga join galerie g on g.id_gl = ga.fk_id_gl where g.fk_id_stf=? order by rand() limit 1" ["params"]=> bool(false) ["host"]=> string(9) "localhost" ["database"]=> string(17) "porszewice_hotele" ["message:protected"]=> string(316) "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 '? order by rand() limit 1' at line 1] in EXECUTE("select * from galeria ga join galerie g on g.id_gl = ga.fk_id_gl where g.fk_id_stf=? order by rand() limit 1") " ["string:private"]=> string(0) "" ["code:protected"]=> int(1064) ["file:protected"]=> string(96) "/home/porszewice/domains/uroczyskoporszewice.pl/public_html/libs/adodb5/adodb-exceptions.inc.php" ["line:protected"]=> int(78) ["trace:private"]=> array(5) { [0]=> array(4) { ["file"]=> string(85) "/home/porszewice/domains/uroczyskoporszewice.pl/public_html/libs/adodb5/adodb.inc.php" ["line"]=> int(1040) ["function"]=> string(11) "adodb_throw" ["args"]=> array(7) { [0]=> string(5) "mysql" [1]=> string(7) "EXECUTE" [2]=> int(1064) [3]=> string(171) "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 '? order by rand() limit 1' at line 1" [4]=> string(108) "select * from galeria ga join galerie g on g.id_gl = ga.fk_id_gl where g.fk_id_stf=? order by rand() limit 1" [5]=> bool(false) [6]=> object(ADODB_mysql)#2 (88) { ["databaseType"]=> string(5) "mysql" ["dataProvider"]=> string(5) "mysql" ["hasInsertID"]=> bool(true) ["hasAffectedRows"]=> bool(true) ["metaTablesSQL"]=> string(11) "SHOW TABLES" ["metaColumnsSQL"]=> string(22) "SHOW COLUMNS FROM `%s`" ["fmtTimeStamp"]=> string(13) "'Y-m-d H:i:s'" ["hasLimit"]=> bool(true) ["hasMoveFirst"]=> bool(true) ["hasGenID"]=> bool(true) ["isoDates"]=> bool(true) ["sysDate"]=> string(9) "CURDATE()" ["sysTimeStamp"]=> string(5) "NOW()" ["hasTransactions"]=> bool(false) ["forceNewConnect"]=> bool(false) ["poorAffectedRows"]=> bool(true) ["clientFlags"]=> int(0) ["substr"]=> string(9) "substring" ["nameQuote"]=> string(1) "`" ["compat323"]=> bool(false) ["_genIDSQL"]=> string(38) "update %s set id=LAST_INSERT_ID(id+1);" ["_genSeqSQL"]=> string(33) "create table %s (id int not null)" ["_genSeqCountSQL"]=> string(23) "select count(*) from %s" ["_genSeq2SQL"]=> string(26) "insert into %s values (%s)" ["_dropSeqSQL"]=> string(13) "drop table %s" ["database"]=> string(17) "porszewice_hotele" ["host"]=> string(9) "localhost" ["user"]=> string(16) "porszewice_hotel" ["password"]=> string(10) "not stored" ["debug"]=> bool(false) ["maxblobsize"]=> int(262144) ["concat_operator"]=> string(1) "+" ["length"]=> string(6) "length" ["random"]=> string(6) "rand()" ["upperCase"]=> string(5) "upper" ["fmtDate"]=> string(7) "'Y-m-d'" ["true"]=> string(1) "1" ["false"]=> string(1) "0" ["replaceQuote"]=> string(2) "\'" ["charSet"]=> bool(false) ["metaDatabasesSQL"]=> string(0) "" ["uniqueOrderBy"]=> bool(false) ["emptyDate"]=> string(6) " " ["emptyTimeStamp"]=> string(6) " " ["lastInsID"]=> bool(false) ["hasTop"]=> bool(false) ["readOnly"]=> bool(false) ["genID"]=> int(0) ["raiseErrorFn"]=> string(11) "adodb_throw" ["cacheSecs"]=> int(3600) ["memCache"]=> bool(false) ["memCacheHost"]=> NULL ["memCachePort"]=> int(11211) ["memCacheCompress"]=> bool(false) ["sysUTimeStamp"]=> bool(false) ["arrayClass"]=> string(18) "ADORecordSet_array" ["noNullStrings"]=> bool(false) ["numCacheHits"]=> int(0) ["numCacheMisses"]=> int(0) ["pageExecuteCountRows"]=> bool(true) ["uniqueSort"]=> bool(false) ["leftOuter"]=> bool(false) ["rightOuter"]=> bool(false) ["ansiOuter"]=> bool(false) ["autoRollback"]=> bool(false) ["fnExecute"]=> bool(false) ["fnCacheExecute"]=> bool(false) ["blobEncodeType"]=> bool(false) ["rsPrefix"]=> string(13) "ADORecordSet_" ["autoCommit"]=> bool(true) ["transOff"]=> int(0) ["transCnt"]=> int(0) ["fetchMode"]=> int(2) ["null2null"]=> string(4) "null" ["bulkBind"]=> bool(false) ["_oldRaiseFn"]=> bool(false) ["_transOK"]=> NULL ["_connectionID"]=> resource(11) of type (mysql link) ["_errorMsg"]=> string(171) "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 '? order by rand() limit 1' at line 1" ["_errorCode"]=> bool(false) ["_queryID"]=> bool(false) ["_isPersistentConnection"]=> bool(false) ["_bindInputArray"]=> bool(false) ["_evalAll"]=> bool(false) ["_affected"]=> bool(false) ["_logsql"]=> bool(false) ["_transmode"]=> string(0) "" ["databaseName"]=> string(17) "porszewice_hotele" } } } [1]=> array(6) { ["file"]=> string(85) "/home/porszewice/domains/uroczyskoporszewice.pl/public_html/libs/adodb5/adodb.inc.php" ["line"]=> int(1015) ["function"]=> string(8) "_Execute" ["class"]=> string(13) "ADOConnection" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(108) "select * from galeria ga join galerie g on g.id_gl = ga.fk_id_gl where g.fk_id_stf=? order by rand() limit 1" [1]=> bool(false) } } [2]=> array(6) { ["file"]=> string(85) "/home/porszewice/domains/uroczyskoporszewice.pl/public_html/libs/adodb5/adodb.inc.php" ["line"]=> int(1608) ["function"]=> string(7) "Execute" ["class"]=> string(13) "ADOConnection" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(108) "select * from galeria ga join galerie g on g.id_gl = ga.fk_id_gl where g.fk_id_stf=? order by rand() limit 1" [1]=> NULL } } [3]=> array(6) { ["file"]=> string(82) "/home/porszewice/domains/uroczyskoporszewice.pl/public_html/libs/class.Galeria.php" ["line"]=> int(128) ["function"]=> string(6) "GetRow" ["class"]=> string(13) "ADOConnection" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(108) "select * from galeria ga join galerie g on g.id_gl = ga.fk_id_gl where g.fk_id_stf=? order by rand() limit 1" [1]=> NULL } } [4]=> array(6) { ["file"]=> string(69) "/home/porszewice/domains/uroczyskoporszewice.pl/public_html/index.php" ["line"]=> int(88) ["function"]=> string(12) "LosujZdjecie" ["class"]=> string(7) "Galeria" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> NULL } } } ["msg"]=> string(171) "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 '? order by rand() limit 1' at line 1" }
ADOConnection.Execute(select * from galeria ga join galerie g on g.id_gl = ga.fk_id_gl where g.fk_id_stf=? order by rand() limit 1, null) % line 1608, file: adodb.inc.php ADOConnection.GetRow(select * from galeria ga join galerie g on g.id_gl = ga.fk_id_gl where g.fk_id_stf=? order by rand() limit 1, null) % line 128, file: class.Galeria.php Galeria.LosujZdjecie(null) % line 88, file: index.php