Clean up my files and folders


I am looking for someone to take a look at my folders and files on my Xenforo install. I think I uploaded lots of files and folders to the wrong places. My site still works, but it is confusing because I don't know which are the folders I need and which I should delete.

Also, I get a server error for one add-on, the Better Blogs. This is the server error:

Server Error
Mysqli prepare error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 23

  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 734
  5. Zend_Db_Adapter_Abstract->fetchAll() in XfAddOns/Blogs/Model/Comment.php at line 202
  6. XfAddOns_Blogs_Model_Comment->getLatestComments() in XfAddOns/Blogs/Panel/HomeRecentComments.php at line 46
  7. XfAddOns_Blogs_Panel_HomeRecentComments::getComments() in XfAddOns/Blogs/Panel/HomeRecentComments.php at line 16
  8. XfAddOns_Blogs_Panel_HomeRecentComments->getPanelContent() in XfAddOns/Blogs/ControllerPublic/BlogHome.php at line 49
  9. XfAddOns_Blogs_ControllerPublic_BlogHome->actionIndex() in XenForo/FrontController.php at line 337
  10. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  11. XenForo_FrontController->run() in /home/dustinma/public_html/ at line 13
The Better Blogs developer said the addon was working fine and that I probably have files uploaded somewhere that shouldn't be there.