Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/rentdire/public_html/API/v1/classes/listings.class.php:512
Stack trace:
#0 /home/rentdire/public_html/index.php(554): listingDetails->getListingsByCategory()
#1 {main}
thrown in /home/rentdire/public_html/API/v1/classes/listings.class.php on line 512