public static function deletePreviewListingsByUserSID($userSID) { $previewListings = SJB_ListingDBManager::getAllPreviewListingsByUserSID($userSID); if ($previewListings) { foreach ($previewListings as $listing) { self::deleteListingBySID($listing['sid']); } } }