I tried to get the latest forum post with this code.
return DataObject::get_one('Post', '', 'Created DESC');
this works fine, but when I delete the latest forum post from the forum the site just doesnt return anything to the screen (whole screen is white).
To get the site live again I have to make a forum post.
can anyone help me with this?