PanicRev

Family. Faith. Moto.

News

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 MySQL server version for the right syntax to use near '-7, 7' at line 1 [string:Exception:private] => [code:protected] => 42000 [file:protected] => /nfs/c12/h07/mnt/216505/domains/panicrev.org/html/edit/database.php [line:protected] => 43 [trace:Exception:private] => Array ( [0] => Array ( [file] => /nfs/c12/h07/mnt/216505/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] => /nfs/c12/h07/mnt/216505/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] => 2017-12-15 23:59:59 ) ) ) [2] => Array ( [file] => /nfs/c12/h07/mnt/216505/domains/panicrev.org/html/pages/news.php [line] => 26 [function] => blog [class] => typeset [type] => -> [args] => Array ( [0] => Array ( [tag] => news [items] => 7 [title] => [scope] => past [order] => desc [page] => article [image_width] => 656 [image_height] => 656 [truncate] => 200 ) ) ) ) [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 MySQL server version for the right syntax to use near '-7, 7' at line 1 ) )
Fatal error: Call to a member function rowCount() on null in /nfs/c12/h07/mnt/216505/domains/panicrev.org/html/edit/include.php on line 503