PDOException Object
(
[message:protected] => SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-7, 7' at line 1
[string:Exception:private] =>
[code:protected] => 42000
[file:protected] => /home/xrdcg74x1uff/domains/panicrev.org/html/edit/database.php
[line:protected] => 43
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/xrdcg74x1uff/domains/panicrev.org/html/edit/database.php
[line] => 43
[function] => prepare
[class] => PDO
[type] => ->
[args] => Array
(
[0] => SELECT title,date,text,id,urn,image FROM blog WHERE tag=:tag AND date<=:today ORDER BY date desc LIMIT -7, 7
)
)
[1] => Array
(
[file] => /home/xrdcg74x1uff/domains/panicrev.org/html/edit/include.php
[line] => 502
[function] => run
[class] => DB
[type] => ->
[args] => Array
(
[0] => SELECT title,date,text,id,urn,image FROM blog WHERE tag=:tag AND date<=:today ORDER BY date desc LIMIT -7, 7
[1] => Array
(
[tag] => news
[today] => 2024-05-04 23:59:59
)
)
)
[2] => Array
(
[file] => /home/xrdcg74x1uff/domains/panicrev.org/html/pages/news.php
[line] => 17
[function] => blog
[class] => typeset
[type] => ->
[args] => Array
(
[0] => stdClass Object
(
[tag] => news
[items] => 7
[title] =>
[scope] => past
[order] => desc
[page] => article
[image_width] => 656
[image_height] => 656
[truncate] => 200
[type] => blog
[id] =>
[format] => html
[sort] => date
[thumb_width] => 200
[thumb_height] => 200
[skip] => 0
[offset] => -7
[paging_name] => page
)
)
)
)
[previous:Exception:private] =>
[errorInfo] => Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-7, 7' at line 1
)
)
Fatal error: Uncaught Error: Call to a member function rowCount() on null in /home/xrdcg74x1uff/domains/panicrev.org/html/edit/include.php:503
Stack trace:
#0 /home/xrdcg74x1uff/domains/panicrev.org/html/pages/news.php(17): typeset->blog(Object(stdClass))
#1 {main}
thrown in /home/xrdcg74x1uff/domains/panicrev.org/html/edit/include.php on line 503