object(PDOException)#52 (8) { ["message":protected]=> string(208) "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 '-8, 8' at line 11" ["string":"Exception":private]=> string(0) "" ["code":protected]=> string(5) "42000" ["file":protected]=> string(55) "/var/www/johnsonscoffee.com/site/_/models/blog/Blog.php" ["line":protected]=> int(157) ["trace":"Exception":private]=> array(5) { [0]=> array(6) { ["file"]=> string(55) "/var/www/johnsonscoffee.com/site/_/models/blog/Blog.php" ["line"]=> int(157) ["function"]=> string(7) "execute" ["class"]=> string(12) "PDOStatement" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> NULL } } [1]=> array(6) { ["file"]=> string(56) "/var/www/johnsonscoffee.com/site/_/models/blog/model.php" ["line"]=> int(47) ["function"]=> string(19) "getLatestByQuantity" ["class"]=> string(4) "Blog" ["type"]=> string(2) "->" ["args"]=> array(5) { [0]=> int(8) [1]=> string(0) "" [2]=> int(0) [3]=> string(0) "" [4]=> bool(false) } } [2]=> array(4) { ["file"]=> string(55) "/var/www/johnsonscoffee.com/site/_/lib/core/Publish.php" ["line"]=> int(311) ["function"]=> string(9) "{closure}" ["args"]=> array(3) { [0]=> object(Publish)#1 (18) { ["__routes":"Publish":private]=> array(3) { [0]=> array(4) { [0]=> string(3) "get" [1]=> string(14) "/?(index.php)?" [2]=> object(Closure)#8 (1) { ["parameter"]=> array(3) { ["$_"]=> string(10) "" ["$path"]=> string(10) "" ["$params"]=> string(10) "" } } [3]=> bool(true) } [1]=> array(4) { [0]=> string(3) "get" [1]=> string(18) "category/[**:page]" [2]=> object(Closure)#7 (1) { ["parameter"]=> array(3) { ["$_"]=> string(10) "" ["$path"]=> string(10) "" ["$params"]=> string(10) "" } } [3]=> bool(true) } [2]=> array(4) { [0]=> string(3) "get" [1]=> string(15) "[i:id]/[*:page]" [2]=> object(Closure)#9 (1) { ["parameter"]=> array(3) { ["$_"]=> string(10) "" ["$path"]=> string(10) "" ["$params"]=> string(10) "" } } [3]=> bool(true) } } ["__events":"Publish":private]=> array(3) { ["beforeDispatch"]=> array(3) { [0]=> object(Closure)#10 (1) { ["parameter"]=> array(1) { ["$_"]=> string(10) "" } } [1]=> object(Closure)#15 (1) { ["parameter"]=> array(1) { ["$_"]=> string(10) "" } } [2]=> object(Closure)#17 (1) { ["parameter"]=> array(1) { ["$_"]=> string(10) "" } } } ["beforeRender"]=> array(1) { [0]=> object(Closure)#11 (1) { ["parameter"]=> array(1) { ["$_"]=> string(10) "" } } } ["afterDispatch"]=> array(2) { [0]=> object(Closure)#12 (1) { ["parameter"]=> array(1) { ["$_"]=> string(10) "" } } [1]=> object(Closure)#13 (1) { ["parameter"]=> array(1) { ["$_"]=> string(10) "" } } } } ["__namespace":"Publish":private]=> NULL ["config"]=> object(stdClass)#2 (6) { ["installpath"]=> string(1) "/" ["webroot"]=> string(33) "/var/www/johnsonscoffee.com/site/" ["database"]=> object(stdClass)#3 (4) { ["host"]=> string(17) "mysql3.servers.tc" ["name"]=> string(14) "johnsonscoffee" ["user"]=> string(14) "johnsonscoffee" ["password"]=> string(12) "Clio349(when" } ["cache"]=> object(stdClass)#4 (2) { ["dir"]=> string(7) "_/cache" ["urlswitch"]=> string(7) "recache" } ["minify"]=> object(stdClass)#5 (2) { ["enabled"]=> bool(true) ["directory"]=> string(10) "assets/min" } ["dir"]=> string(34) "/var/www/johnsonscoffee.com/site/_" } ["headers"]=> array(1) { ["X-Powered-By"]=> string(7) "Publish" } ["path"]=> string(0) "" ["contentType"]=> string(4) "html" ["view"]=> string(22) "views/blog/default.tpl" ["defaultAssignments"]=> array(13) { ["seo"]=> array(4) { ["title"]=> string(0) "" ["description"]=> string(0) "" ["sitetitle"]=> string(15) "Johnsons Coffee" ["sitedescription"]=> string(304) "The finest coffee is born from a respect for every step of a delicate process. It begins with ripe coffee cherries, plucked at their peak: high in aromatic oils and low in acidity. Here at Johnsons, we only pick from the high slopes of the best estates, where mineral rich soil provides ideal conditions." } ["nav"]=> array(0) { } ["uri"]=> string(22) "/blog?perpage=8&page=0" ["year"]=> string(4) "2019" ["home"]=> bool(false) ["stripeLive"]=> bool(true) ["settings"]=> array(4) { ["social"]=> array(5) { ["twitter"]=> string(34) "https://twitter.com/johnsonscoffee" ["facebook"]=> string(40) "https://www.facebook.com/JohnsonsCoffee/" ["instagram"]=> string(43) "https://www.instagram.com/johnsonscoffeeni/" ["twitterHandle"]=> string(14) "johnsonscoffee" ["facebookHandle"]=> string(14) "JohnsonsCoffee" } ["footer"]=> array(1) { ["image"]=> string(55) "cmsfiles/pages/footer/nathan-dumlao-463043-unsplash.png" } ["contact"]=> array(6) { ["address"]=> array(2) { ["formatted"]=> string(75) "137 Hillsborough Old Road
Lisburn
N. Ireland
BT27 5QR" ["unformatted"]=> string(57) "137 Hillsborough Old Road Lisburn N. Ireland BT27 5QR" } ["phone"]=> array(2) { ["formatted"]=> string(16) "+44(028)92679121" ["unformatted"]=> string(19) "+44 (028) 9267 9121" } ["fax"]=> array(2) { ["formatted"]=> string(16) "+44(0)2892668800" ["unformatted"]=> string(19) "+44 (0)28 9266 8800" } ["email"]=> string(0) "" ["vat"]=> string(11) "GB251889626" ["footerLinks"]=> array(6) { [0]=> object(stdClass)#41 (18) { ["ItemID"]=> string(1) "4" ["ItemShowFilterCaffeinated"]=> string(1) "1" ["ItemShowFilterStrength"]=> string(1) "1" ["ItemShowFilterRegion"]=> string(1) "1" ["ItemText"]=> string(6) "Coffee" ["ItemParent"]=> string(1) "1" ["ItemOrder"]=> string(1) "1" ["ItemURL"]=> string(21) "shop/beverages/coffee" ["ItemImage"]=> NULL ["ItemSubtitle"]=> NULL ["ItemDescription"]=> NULL ["ItemImageSmall"]=> NULL ["ItemGenerateThumb"]=> NULL ["ItemFacebookImage"]=> NULL ["ItemAllIDs"]=> string(6) "-1,1,4" ["ItemDepth"]=> string(1) "2" ["ItemPublish"]=> string(1) "1" ["ItemTitle"]=> string(6) "Coffee" } [1]=> object(stdClass)#42 (24) { ["ItemID"]=> string(1) "5" ["ItemTitle"]=> string(4) "Blog" ["ItemParent"]=> string(2) "-1" ["ItemOrder"]=> string(1) "5" ["ItemURL"]=> string(4) "blog" ["ItemDepth"]=> string(1) "1" ["ItemSEOTitle"]=> NULL ["ItemSEODescription"]=> NULL ["ItemSubtitle"]=> NULL ["ItemIntro"]=> NULL ["ItemContent"]=> NULL ["ItemContentCache"]=> NULL ["ItemImage"]=> NULL ["ItemTemplate"]=> NULL ["ItemPanel1"]=> NULL ["ItemTrainingCols"]=> NULL ["ItemPublish"]=> string(1) "1" ["ItemHistoryContent"]=> NULL ["ItemHistoryImages"]=> NULL ["ItemContactImage"]=> NULL ["ItemTrainingImages"]=> NULL ["ItemTestimonial"]=> NULL ["ItemSubscriptionsWho"]=> NULL ["ItemHeaderButton"]=> NULL } [2]=> object(stdClass)#43 (18) { ["ItemID"]=> string(1) "5" ["ItemShowFilterCaffeinated"]=> string(1) "1" ["ItemShowFilterStrength"]=> string(1) "0" ["ItemShowFilterRegion"]=> string(1) "0" ["ItemText"]=> string(3) "Tea" ["ItemParent"]=> string(1) "1" ["ItemOrder"]=> string(1) "2" ["ItemURL"]=> string(18) "shop/beverages/tea" ["ItemImage"]=> NULL ["ItemSubtitle"]=> NULL ["ItemDescription"]=> NULL ["ItemImageSmall"]=> NULL ["ItemGenerateThumb"]=> NULL ["ItemFacebookImage"]=> NULL ["ItemAllIDs"]=> string(6) "-1,1,5" ["ItemDepth"]=> string(1) "2" ["ItemPublish"]=> string(1) "1" ["ItemTitle"]=> string(3) "Tea" } [3]=> object(stdClass)#44 (18) { ["ItemID"]=> string(2) "16" ["ItemShowFilterCaffeinated"]=> string(1) "0" ["ItemShowFilterStrength"]=> string(1) "0" ["ItemShowFilterRegion"]=> string(1) "0" ["ItemText"]=> string(5) "Gifts" ["ItemParent"]=> string(2) "-1" ["ItemOrder"]=> string(1) "4" ["ItemURL"]=> string(10) "shop/gifts" ["ItemImage"]=> NULL ["ItemSubtitle"]=> NULL ["ItemDescription"]=> NULL ["ItemImageSmall"]=> NULL ["ItemGenerateThumb"]=> NULL ["ItemFacebookImage"]=> NULL ["ItemAllIDs"]=> string(5) "-1,16" ["ItemDepth"]=> string(1) "1" ["ItemPublish"]=> string(1) "1" ["ItemTitle"]=> string(5) "Gifts" } [4]=> object(stdClass)#45 (18) { ["ItemID"]=> string(1) "2" ["ItemShowFilterCaffeinated"]=> string(1) "0" ["ItemShowFilterStrength"]=> string(1) "0" ["ItemShowFilterRegion"]=> string(1) "0" ["ItemText"]=> string(8) "Sundries" ["ItemParent"]=> string(2) "-1" ["ItemOrder"]=> string(1) "2" ["ItemURL"]=> string(13) "shop/sundries" ["ItemImage"]=> string(46) "cmsfiles/images/shop/categories/l-sundries.jpg" ["ItemSubtitle"]=> string(60) "We can help you deliver the complete coffeeshop experience" ["ItemDescription"]=> string(67) "We have all the sweet stuff covered with some great special offers" ["ItemImageSmall"]=> string(46) "cmsfiles/images/shop/categories/s-sundries.jpg" ["ItemGenerateThumb"]=> string(1) "1" ["ItemFacebookImage"]=> NULL ["ItemAllIDs"]=> string(4) "-1,2" ["ItemDepth"]=> string(1) "1" ["ItemPublish"]=> string(1) "1" ["ItemTitle"]=> string(8) "Sundries" } [5]=> object(stdClass)#46 (18) { ["ItemID"]=> string(1) "3" ["ItemShowFilterCaffeinated"]=> string(1) "0" ["ItemShowFilterStrength"]=> string(1) "0" ["ItemShowFilterRegion"]=> string(1) "0" ["ItemText"]=> string(9) "Equipment" ["ItemParent"]=> string(2) "-1" ["ItemOrder"]=> string(1) "3" ["ItemURL"]=> string(14) "shop/equipment" ["ItemImage"]=> string(43) "cmsfiles/images/shop/categories/machine.jpg" ["ItemSubtitle"]=> string(52) "Professional tools to make the best coffee in town" ["ItemDescription"]=> string(65) "We can make sure your machine and blends work in perfect harmony" ["ItemImageSmall"]=> string(52) "cmsfiles/images/shop/categories/s-coffee-machine.jpg" ["ItemGenerateThumb"]=> string(1) "1" ["ItemFacebookImage"]=> NULL ["ItemAllIDs"]=> string(4) "-1,3" ["ItemDepth"]=> string(1) "1" ["ItemPublish"]=> string(1) "1" ["ItemTitle"]=> string(9) "Equipment" } } } ["productCategoryMenu"]=> array(5) { [0]=> object(stdClass)#29 (17) { ["ItemID"]=> string(1) "4" ["ItemShowFilterCaffeinated"]=> string(1) "1" ["ItemShowFilterStrength"]=> string(1) "1" ["ItemShowFilterRegion"]=> string(1) "1" ["ItemText"]=> string(6) "Coffee" ["ItemParent"]=> string(1) "1" ["ItemOrder"]=> string(1) "1" ["ItemURL"]=> string(21) "shop/beverages/coffee" ["ItemImage"]=> NULL ["ItemSubtitle"]=> NULL ["ItemDescription"]=> NULL ["ItemImageSmall"]=> NULL ["ItemGenerateThumb"]=> NULL ["ItemFacebookImage"]=> NULL ["ItemAllIDs"]=> string(6) "-1,1,4" ["ItemDepth"]=> string(1) "2" ["ItemPublish"]=> string(1) "1" } [1]=> object(stdClass)#30 (17) { ["ItemID"]=> string(1) "5" ["ItemShowFilterCaffeinated"]=> string(1) "1" ["ItemShowFilterStrength"]=> string(1) "0" ["ItemShowFilterRegion"]=> string(1) "0" ["ItemText"]=> string(3) "Tea" ["ItemParent"]=> string(1) "1" ["ItemOrder"]=> string(1) "2" ["ItemURL"]=> string(18) "shop/beverages/tea" ["ItemImage"]=> NULL ["ItemSubtitle"]=> NULL ["ItemDescription"]=> NULL ["ItemImageSmall"]=> NULL ["ItemGenerateThumb"]=> NULL ["ItemFacebookImage"]=> NULL ["ItemAllIDs"]=> string(6) "-1,1,5" ["ItemDepth"]=> string(1) "2" ["ItemPublish"]=> string(1) "1" } [2]=> object(stdClass)#31 (17) { ["ItemID"]=> string(1) "3" ["ItemShowFilterCaffeinated"]=> string(1) "0" ["ItemShowFilterStrength"]=> string(1) "0" ["ItemShowFilterRegion"]=> string(1) "0" ["ItemText"]=> string(9) "Equipment" ["ItemParent"]=> string(2) "-1" ["ItemOrder"]=> string(1) "3" ["ItemURL"]=> string(14) "shop/equipment" ["ItemImage"]=> string(43) "cmsfiles/images/shop/categories/machine.jpg" ["ItemSubtitle"]=> string(52) "Professional tools to make the best coffee in town" ["ItemDescription"]=> string(65) "We can make sure your machine and blends work in perfect harmony" ["ItemImageSmall"]=> string(52) "cmsfiles/images/shop/categories/s-coffee-machine.jpg" ["ItemGenerateThumb"]=> string(1) "1" ["ItemFacebookImage"]=> NULL ["ItemAllIDs"]=> string(4) "-1,3" ["ItemDepth"]=> string(1) "1" ["ItemPublish"]=> string(1) "1" } [3]=> object(stdClass)#32 (17) { ["ItemID"]=> string(1) "2" ["ItemShowFilterCaffeinated"]=> string(1) "0" ["ItemShowFilterStrength"]=> string(1) "0" ["ItemShowFilterRegion"]=> string(1) "0" ["ItemText"]=> string(8) "Sundries" ["ItemParent"]=> string(2) "-1" ["ItemOrder"]=> string(1) "2" ["ItemURL"]=> string(13) "shop/sundries" ["ItemImage"]=> string(46) "cmsfiles/images/shop/categories/l-sundries.jpg" ["ItemSubtitle"]=> string(60) "We can help you deliver the complete coffeeshop experience" ["ItemDescription"]=> string(67) "We have all the sweet stuff covered with some great special offers" ["ItemImageSmall"]=> string(46) "cmsfiles/images/shop/categories/s-sundries.jpg" ["ItemGenerateThumb"]=> string(1) "1" ["ItemFacebookImage"]=> NULL ["ItemAllIDs"]=> string(4) "-1,2" ["ItemDepth"]=> string(1) "1" ["ItemPublish"]=> string(1) "1" } [4]=> object(stdClass)#33 (17) { ["ItemID"]=> string(2) "16" ["ItemShowFilterCaffeinated"]=> string(1) "0" ["ItemShowFilterStrength"]=> string(1) "0" ["ItemShowFilterRegion"]=> string(1) "0" ["ItemText"]=> string(5) "Gifts" ["ItemParent"]=> string(2) "-1" ["ItemOrder"]=> string(1) "4" ["ItemURL"]=> string(10) "shop/gifts" ["ItemImage"]=> NULL ["ItemSubtitle"]=> NULL ["ItemDescription"]=> NULL ["ItemImageSmall"]=> NULL ["ItemGenerateThumb"]=> NULL ["ItemFacebookImage"]=> NULL ["ItemAllIDs"]=> string(5) "-1,16" ["ItemDepth"]=> string(1) "1" ["ItemPublish"]=> string(1) "1" } } } ["session"]=> array(1) { ["loggedin"]=> bool(false) } ["favourites"]=> array(0) { } ["basketsize"]=> int(0) ["basketcontents"]=> array(0) { } ["recentlyAdded"]=> array(0) { } ["currencysymbol"]=> string(7) "£" } ["database"]=> object(Closure)#14 (1) { ["parameter"]=> array(1) { ["$_"]=> string(10) "" } } ["_database"]=> object(PDO)#16 (0) { } ["functions"]=> object(TCFunctions)#18 (2) { ["db"]=> NULL ["_"]=> *RECURSION* } ["siteFunctions"]=> object(SiteFunctions)#19 (2) { ["db"]=> NULL ["_"]=> *RECURSION* } ["blog"]=> object(Blog)#56 (5) { ["database":"Blog":private]=> NULL ["table":"Blog":private]=> string(5) "Blogs" ["table2":"Blog":private]=> string(14) "BlogCategories" ["table3":"Blog":private]=> string(12) "BlogComments" ["_"]=> *RECURSION* } ["session"]=> object(Session)#40 (13) { ["connection"]=> object(PDO)#16 (0) { } ["sessionkey"]=> NULL ["sessionkey2"]=> NULL ["sessionvalue"]=> NULL ["timeout"]=> int(7890000) ["cookiename"]=> string(8) "userdata" ["encryptedFields"]=> array(6) { [0]=> string(9) "ItemEmail" [1]=> string(13) "ItemFirstName" [2]=> string(12) "ItemLastName" [3]=> string(13) "ItemTelephone" [4]=> string(11) "ItemCompany" [5]=> string(12) "ItemPosition" } ["prefix"]=> string(0) "" ["saved"]=> object(stdClass)#39 (0) { } ["_"]=> *RECURSION* ["cookiename2"]=> string(13) "userdata_salt" ["sessionvalues"]=> array(3) { ["loggedin"]=> bool(false) ["cart"]=> array(0) { } ["favourites"]=> array(0) { } } ["sql"]=> object(PDOStatement)#24 (1) { ["queryString"]=> string(98) "UPDATE Sessions SET SessionValue = :value WHERE SessionKey = :key AND SessionKey2 = :key2" } } ["warehouse"]=> object(Products)#37 (3) { ["database":"Products":private]=> string(0) "" ["_"]=> *RECURSION* ["region"]=> string(2) "UK" } ["cart"]=> object(Cart)#36 (16) { ["config"]=> object(stdClass)#23 (6) { ["pricesIncludeTax"]=> bool(true) ["pricesIncludeShipping"]=> bool(false) ["priceBanding"]=> bool(false) ["includeTaxInNonTaxRegions"]=> bool(true) ["taxRegions"]=> array(2) { [0]=> string(2) "uk" [1]=> string(6) "europe" } ["enableOffers"]=> bool(false) } ["database"]=> NULL ["items"]=> array(0) { } ["billing"]=> object(stdClass)#34 (9) { ["name"]=> string(0) "" ["line1"]=> string(0) "" ["line2"]=> string(0) "" ["line3"]=> string(0) "" ["county"]=> string(0) "" ["city"]=> string(0) "" ["country"]=> string(0) "" ["postcode"]=> string(0) "" ["phone"]=> string(0) "" } ["delivery"]=> object(stdClass)#35 (9) { ["name"]=> string(0) "" ["line1"]=> string(0) "" ["line2"]=> string(0) "" ["line3"]=> string(0) "" ["county"]=> string(0) "" ["city"]=> string(0) "" ["country"]=> string(0) "" ["postcode"]=> string(0) "" ["phone"]=> string(0) "" } ["discounts"]=> array(0) { } ["giftcards"]=> array(0) { } ["extra"]=> object(stdClass)#28 (1) { ["currency"]=> string(3) "GBP" } ["db"]=> NULL ["lineitems"]=> array(0) { } ["charges"]=> array(0) { } ["offerdiscounts"]=> array(0) { } ["address"]=> array(9) { ["name"]=> string(0) "" ["line1"]=> string(0) "" ["line2"]=> string(0) "" ["line3"]=> string(0) "" ["county"]=> string(0) "" ["city"]=> string(0) "" ["country"]=> string(0) "" ["postcode"]=> string(0) "" ["phone"]=> string(0) "" } ["totalsNeedUpdated"]=> bool(false) ["_"]=> *RECURSION* ["lastTotals"]=> object(stdClass)#25 (8) { ["subtotal"]=> float(0) ["subtotalwithtax"]=> float(0) ["shipping"]=> float(0) ["discount"]=> float(0) ["donation"]=> float(0) ["tax"]=> float(0) ["total"]=> float(0) ["freeShipping"]=> bool(false) } } ["navigator"]=> object(NavWalker)#38 (13) { ["db"]=> NULL ["table":"NavWalker":private]=> string(5) "Pages" ["id":"NavWalker":private]=> string(6) "ItemID" ["parent":"NavWalker":private]=> string(10) "ItemParent" ["order":"NavWalker":private]=> string(9) "ItemOrder" ["url":"NavWalker":private]=> string(7) "ItemURL" ["text":"NavWalker":private]=> string(8) "ItemText" ["authorised":"NavWalker":private]=> bool(false) ["authorisedwhere":"NavWalker":private]=> string(0) "" ["hideNav":"NavWalker":private]=> string(0) "" ["structure":"NavWalker":private]=> array(2) { [0]=> string(2) "-1" [1]=> string(1) "5" } ["_"]=> *RECURSION* ["currentsection"]=> string(1) "5" } } [1]=> string(0) "" [2]=> array(1) { [0]=> string(0) "" } } } [3]=> array(6) { ["file"]=> string(44) "/var/www/johnsonscoffee.com/site/_/index.php" ["line"]=> int(215) ["function"]=> string(8) "dispatch" ["class"]=> string(7) "Publish" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> string(0) "" [1]=> string(3) "get" [2]=> &array(1) { [0]=> string(0) "" } } } [4]=> array(4) { ["file"]=> string(42) "/var/www/johnsonscoffee.com/site/index.php" ["line"]=> int(7) ["args"]=> array(1) { [0]=> string(44) "/var/www/johnsonscoffee.com/site/_/index.php" } ["function"]=> string(7) "include" } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> array(3) { [0]=> string(5) "42000" [1]=> int(1064) [2]=> string(152) "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 '-8, 8' at line 11" } }
Notice: Undefined property: stdClass::$data in /var/www/johnsonscoffee.com/site/_/models/blog/model.php on line 61

Notice: Trying to get property of non-object in /var/www/johnsonscoffee.com/site/_/models/blog/model.php on line 61
Blog - Johnsons Coffee