I wanted to take a moment and inform other Statpress users how to fix the searching error
The above error message kept appearing each time I executed the search function of Statpress. After some searching around the only suggestion I found was to rename the plugin directory and reactivate the plugin. I was afraid that might break more than just the search so instead I located and fixed the problem and here is the solution.
Around line 819 of statpress.php located in your plugins/statpress/ directory you will see the following line of code:
Change it to