Type: E_USER_ERROR (256)
Message: postgres7 error: [-1: BŁĄD: błąd składni w lub blisko "1" LINIA 1: ...$3 AND m.alert_on< $4 AND u.done_on>= $5-INTERVAL 1 hour AND... ^] in EXECUTE("(SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND u.done=0 AND m.alert_on=?-INTERVAL 1 hour AND u.done=1 ORDER BY m.alert_on DESC LIMIT 3) UNION (SELECT 0 as done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND m.alert_on>=? ORDER BY m.alert_on ASC LIMIT 5) ORDER BY alert_on ASC")
File: /opt/epesi/libs/adodb/adodb-errorhandler.inc.php
Line=77
error backtrace:
[PHP core called function]
function called: handle_epesi_error(256, "postgres7 error: [-1: BŁĄD: błąd składni w lub blisko \"1\" LINIA 1: ...$3 AND m.alert_on< $4 AND u.done_on>= $5-INTERVAL 1 hour AND... ^] in EXECUTE(\"(SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND u.done=0 AND m.alert_on=?-INTERVAL 1 hour AND u.done=1 ORDER BY m.alert_on DESC LIMIT 3) UNION (SELECT 0 as done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND m.alert_on>=? ORDER BY m.alert_on ASC LIMIT 5) ORDER BY alert_on ASC\") ", "/opt/epesi/libs/adodb/adodb-errorhandler.inc.php", 77, Array ("postgres7", "EXECUTE", -1, "BŁĄD: błąd składni w lub blisko \"1\" LINIA 1: ...$3 AND m.alert_on< $4 AND u.done_on>= $5-INTERVAL 1 hour AND... ^", "(SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND u.done=0 AND m.alert_on=?-INTERVAL 1 hour AND u.done=1 ORDER BY m.alert_on DESC LIMIT 3) UNION (SELECT 0 as done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND m.alert_on>=? ORDER BY m.alert_on ASC LIMIT 5) ORDER BY alert_on ASC", Array (#7), Object (ADODB_postgres7), "(SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND u.done=0 AND m.alert_on=?-INTERVAL 1 hour AND u.done=1 ORDER BY m.alert_on DESC LIMIT 3) UNION (SELECT 0 as done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND m.alert_on>=? ORDER BY m.alert_on ASC LIMIT 5) ORDER BY alert_on ASC", Array (#7), "postgres7 error: [-1: BŁĄD: błąd składni w lub blisko \"1\" LINIA 1: ...$3 AND m.alert_on< $4 AND u.done_on>= $5-INTERVAL 1 hour AND... ^] in EXECUTE(\"(SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND u.done=0 AND m.alert_on=?-INTERVAL 1 hour AND u.done=1 ORDER BY m.alert_on DESC LIMIT 3) UNION (SELECT 0 as done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND m.alert_on>=? ORDER BY m.alert_on ASC LIMIT 5) ORDER BY alert_on ASC\") "))
File: /opt/epesi/libs/adodb/adodb-errorhandler.inc.php
line 77
function called: trigger_error("postgres7 error: [-1: BŁĄD: błąd składni w lub blisko \"1\" LINIA 1: ...$3 AND m.alert_on< $4 AND u.done_on>= $5-INTERVAL 1 hour AND... ^] in EXECUTE(\"(SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND u.done=0 AND m.alert_on=?-INTERVAL 1 hour AND u.done=1 ORDER BY m.alert_on DESC LIMIT 3) UNION (SELECT 0 as done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND m.alert_on>=? ORDER BY m.alert_on ASC LIMIT 5) ORDER BY alert_on ASC\") ", 256)
File: /opt/epesi/libs/adodb/adodb.inc.php
line 1043
function called: ADODB_Error_Handler("postgres7", "EXECUTE", -1, "BŁĄD: błąd składni w lub blisko \"1\" LINIA 1: ...$3 AND m.alert_on< $4 AND u.done_on>= $5-INTERVAL 1 hour AND... ^", "(SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND u.done=0 AND m.alert_on=?-INTERVAL 1 hour AND u.done=1 ORDER BY m.alert_on DESC LIMIT 3) UNION (SELECT 0 as done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND m.alert_on>=? ORDER BY m.alert_on ASC LIMIT 5) ORDER BY alert_on ASC", Array (24, "2013-07-12 08:07:14", 24, "2013-07-12 08:07:14", "2013-07-12 08:07:14", 24, "2013-07-12 08:07:14"), "Object (ADODB_postgres7)")
File: /opt/epesi/libs/adodb/adodb.inc.php
line 1014
function called: _Execute("(SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND u.done=0 AND m.alert_on=?-INTERVAL 1 hour AND u.done=1 ORDER BY m.alert_on DESC LIMIT 3) UNION (SELECT 0 as done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND m.alert_on>=? ORDER BY m.alert_on ASC LIMIT 5) ORDER BY alert_on ASC", Array (24, "2013-07-12 08:07:14", 24, "2013-07-12 08:07:14", "2013-07-12 08:07:14", 24, "2013-07-12 08:07:14"))
[PHP core called function]
function called: Execute("(SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND u.done=0 AND m.alert_on=?-INTERVAL 1 hour AND u.done=1 ORDER BY m.alert_on DESC LIMIT 3) UNION (SELECT 0 as done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND m.alert_on>=? ORDER BY m.alert_on ASC LIMIT 5) ORDER BY alert_on ASC", Array (24, "2013-07-12 08:07:14", 24, "2013-07-12 08:07:14", "2013-07-12 08:07:14", 24, "2013-07-12 08:07:14"))
File: /opt/epesi/include/database.php
line 339
function called: call_user_func_array(Array (Object (ADODB_postgres7), "Execute"), Array ("(SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND u.done=0 AND m.alert_on=?-INTERVAL 1 hour AND u.done=1 ORDER BY m.alert_on DESC LIMIT 3) UNION (SELECT 0 as done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=? AND m.alert_on>=? ORDER BY m.alert_on ASC LIMIT 5) ORDER BY alert_on ASC", Array (#7)))
File: /opt/epesi/modules/Utils/Messenger/Messenger_0.php
line 220
function called: Execute("(SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=%d AND u.done=0 AND m.alert_on<%T) UNION (SELECT u.done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=%d AND m.alert_on<%T AND u.done_on>=%T-INTERVAL 1 hour AND u.done=1 ORDER BY m.alert_on DESC LIMIT 3) UNION (SELECT 0 as done,m.* FROM utils_messenger_message m INNER JOIN utils_messenger_users u ON u.message_id=m.id WHERE u.user_login_id=%d AND m.alert_on>=%T ORDER BY m.alert_on ASC LIMIT 5) ORDER BY alert_on ASC", Array ("24", 1373609234, "24", 1373609234, 1373609234, "24", 1373609234))
[PHP core called function]
function called: applet(Array (), Array ("Alarmy komunikatora", true, null, false, "body", Array (#0), Array (#0), Array (#0), "147"), "147")
File: /opt/epesi/include/module.php
line 793
function called: call_user_func_array(Array (Object (Utils_Messenger), "applet"), Array (Array (#0), "Array (\"Alarmy komunikatora\", true, null, false, \"body\", Array (#0), Array (#0), Array (#0), \"147\")", "147"))
File: /opt/epesi/modules/Base/Dashboard/Dashboard_0.php
line 192
function called: get_html_of_module(Object (Utils_Messenger), Array (Array (#0), "\"Array (\\"Alarmy komunikatora\\", true, null, false, \\"body\\", Array (#0), Array (#0), Array (#0), \\"147\\")\"", "147"), "applet")
File: /opt/epesi/modules/Base/Dashboard/Dashboard_0.php
line 126
function called: display_dashboard("14")
File: /opt/epesi/modules/Base/Dashboard/Dashboard_0.php
line 29
function called: dashboard()
[PHP core called function]
function called: body()
File: /opt/epesi/include/module.php
line 793
function called: call_user_func_array(Array (Object (Base_Dashboard), "body"), Array ())
File: /opt/epesi/include/module.php
line 713
function called: get_html_of_module(Object (Base_Dashboard), null, "body")
File: /opt/epesi/include/module.php
line 886
function called: display_module("Object (Base_Dashboard)", null, "body")
File: /opt/epesi/modules/Base/HomePage/HomePage_0.php
line 24
function called: pack_module("Base/Dashboard", null, "body", null)
File: /opt/epesi/modules/Base/HomePage/HomePage_0.php
line 17
function called: show_home_page(Array ("Base/Dashboard"))
[PHP core called function]
function called: body()
File: /opt/epesi/include/module.php
line 793
function called: call_user_func_array(Array (Object (Base_HomePage), "body"), Array ())
File: /opt/epesi/include/module.php
line 713
function called: get_html_of_module(Object (Base_HomePage), null, null)
File: /opt/epesi/modules/Base/Box/Box_0.php
line 146
function called: display_module("Object (Base_HomePage)")
File: /opt/epesi/include/epesi.php
line 209
function called: body()
File: /opt/epesi/include/epesi.php
line 254
function called: go(Object (Base_Box))
File: /opt/epesi/process.php
line 32
function called: process("__action_module__=%2FBase_Box%7C0%2FBase_HomePage%7Cbffc51010e7fb6a91adde4386479c227_r%2FBase_Dashboard%7C0&%2FBase_Box%7C0%2FBase_HomePage%7Cbffc51010e7fb6a91adde4386479c227_r%2FBase_Dashboard%7C0_callback_6ce975243404993dee3a5e4d1aacc53c=1", false)