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 's-2012-Doomsday-Underground-Bunkers.html' LIMIT 1' at line 1(Checking for product pagename) sql: SELECT id FROM pages WHERE pagename = 'The-Government's-2012-Doomsday-Underground-Bunkers.html' LIMIT 1
Fatal error: Call to a member function getSingleResult() on a non-object in /home/youtdoor/public_html/library/pagenames.php on line 30