Fatal error: Uncaught PDOException: 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 '' at line 1 in /home/forge/www.john-taylor.com/class/data.class.php:40
Stack trace:
#0 /home/forge/www.john-taylor.com/class/data.class.php(40): PDO->query()
#1 /home/forge/www.john-taylor.com/class/listing.class.php(4039): Data->display()
#2 /home/forge/www.john-taylor.com/app/landing/vineyards.php(198): Listing::last_by_agency()
#3 /home/forge/www.john-taylor.com/core.php(107): require_once('...')
#4 /home/forge/www.john-taylor.com/html/index.php(20): Core::init()
#5 {main}
thrown in /home/forge/www.john-taylor.com/class/data.class.php on line 40