object(PDOException)#24 (8) {
["message":protected]=>
string(210) "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 '-12, 12' at line 11"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
string(5) "42000"
["file":protected]=>
string(57) "/home/ploi/www.umifoods.co.uk/site/_/models/news/Blog.php"
["line":protected]=>
int(156)
["trace":"Exception":private]=>
array(5) {
[0]=>
array(5) {
["file"]=>
string(57) "/home/ploi/www.umifoods.co.uk/site/_/models/news/Blog.php"
["line"]=>
int(156)
["function"]=>
string(7) "execute"
["class"]=>
string(12) "PDOStatement"
["type"]=>
string(2) "->"
}
[1]=>
array(5) {
["file"]=>
string(58) "/home/ploi/www.umifoods.co.uk/site/_/models/news/model.php"
["line"]=>
int(141)
["function"]=>
string(19) "getLatestByQuantity"
["class"]=>
string(4) "Blog"
["type"]=>
string(2) "->"
}
[2]=>
array(3) {
["file"]=>
string(57) "/home/ploi/www.umifoods.co.uk/site/_/lib/core/Publish.php"
["line"]=>
int(311)
["function"]=>
string(9) "{closure}"
}
[3]=>
array(5) {
["file"]=>
string(46) "/home/ploi/www.umifoods.co.uk/site/_/index.php"
["line"]=>
int(211)
["function"]=>
string(8) "dispatch"
["class"]=>
string(7) "Publish"
["type"]=>
string(2) "->"
}
[4]=>
array(4) {
["file"]=>
string(44) "/home/ploi/www.umifoods.co.uk/site/index.php"
["line"]=>
int(7)
["args"]=>
array(1) {
[0]=>
string(46) "/home/ploi/www.umifoods.co.uk/site/_/index.php"
}
["function"]=>
string(7) "include"
}
}
["previous":"Exception":private]=>
NULL
["errorInfo"]=>
array(3) {
[0]=>
string(5) "42000"
[1]=>
int(1064)
[2]=>
string(154) "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 '-12, 12' at line 11"
}
}
Notice: Undefined property: stdClass::$data in /home/ploi/www.umifoods.co.uk/site/_/models/news/model.php on line 172
Warning: Invalid argument supplied for foreach() in /home/ploi/www.umifoods.co.uk/site/_/models/news/model.php on line 172