I've my Wordpress blog on blog.mysite.com, along with a completely different site (built-in my framework) at www.mysite.com.

I understand when the blog and the other site are on a single server, and also have correct permissions, I'm able to make use of the following to "syndicate" my blogs towards the non-blog with:

define('WP_USE_THEMES', false);

...after which operate a loop around the page.

However , since my non-blog is really a framework, everything aside from my front controller lives inside a function - which is creating the next error for me personally:

Fatal error: Call to undefined method stdClass::set_prefix()

(btw, I am fairly certain the truth that this code is known as inside a function that's leading to the mistake...after i place the code around the front controller (not in function), the mistake vanishes)

I would love to possess recent blog entries on my small non-blog to brighten up. Any tips on how to do that?

Well I suppose you didn't remember to create

global $wpdb

within the function