Error on Collection Browse after upgrading to version 2.2

Hello am getting the followig error dumb on collection browse. This happens when I add a new collection or even view existing collections. It started after upgrading to version 2.2...

#0 /home/ecsahc/public_html/library/application/libraries/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('SELECT items....')
#1 /home/ecsahc/public_html/library/application/libraries/Zend/Db/Adapter/Mysqli.php(388): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT items....')
#2 /home/ecsahc/public_html/library/application/libraries/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Adapter_Mysqli->prepare('SELECT items....')
#3 [internal function]: Zend_Db_Adapter_Abstract->query(Object(Omeka_Db_Select), Array)
#4 /home/ecsahc/public_html/library/application/libraries/Omeka/Db.php(79): call_user_func_array(Array, Array)
#5 /home/ecsahc/public_html/library/application/libraries/Omeka/Db/Table.php(604): Omeka_Db->__call('query', Array)
#6 /home/ecsahc/public_html/library/application/libraries/Omeka/Db/Table.php(604): Omeka_Db->query(Object(Omeka_Db_Select), Array)
#7 /home/ecsahc/public_html/library/application/libraries/Omeka/Db/Table.php(281): Omeka_Db_Table->fetchObjects(Object(Omeka_Db_Select))
#8 /home/ecsahc/public_html/library/application/models/Collection.php(228): Omeka_Db_Table->findBy(Array, 1)
#9 /home/ecsahc/public_html/library/application/libraries/globals.php(2100): Collection->getFile()
#10 /home/ecsahc/public_html/library/application/views/scripts/collections/single.php(7): record_image(Object(Collection), 'square_thumbnai...')
#11 /home/ecsahc/public_html/library/application/libraries/Omeka/View.php(117): include('/home/ecsahc/pu...')
#12 /home/ecsahc/public_html/library/application/libraries/Zend/View/Abstract.php(888): Omeka_View->_run('/home/ecsahc/pu...')
#13 /home/ecsahc/public_html/library/application/libraries/Zend/View/Helper/Partial.php(109): Zend_View_Abstract->render('collections/sin...')
#14 [internal function]: Zend_View_Helper_Partial->partial('collections/sin...', Array)
#15 /home/ecsahc/public_html/library/application/libraries/Zend/View/Abstract.php(350): call_user_func_array(Array, Array)
#16 /home/ecsahc/public_html/library/application/libraries/globals.php(1275): Zend_View_Abstract->__call('partial', Array)
#17 /home/ecsahc/public_html/library/application/libraries/globals.php(1275): Omeka_View->partial('collections/sin...', Array)
#18 /home/ecsahc/public_html/library/themes/berlin/index.php(17): random_featured_collection()
#19 /home/ecsahc/public_html/library/application/libraries/Omeka/View.php(117): include('/home/ecsahc/pu...')
#20 /home/ecsahc/public_html/library/application/libraries/Zend/View/Abstract.php(888): Omeka_View->_run('/home/ecsahc/pu...')
#21 /home/ecsahc/public_html/library/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(900): Zend_View_Abstract->render('index.php')
#22 /home/ecsahc/public_html/library/application/controllers/IndexController.php(16): Zend_Controller_Action_Helper_ViewRenderer->renderScript('index.php')
#23 /home/ecsahc/public_html/library/application/libraries/Zend/Controller/Action.php(516): IndexController->indexAction()
#24 /home/ecsahc/public_html/library/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#25 /home/ecsahc/public_html/library/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#26 /home/ecsahc/public_html/library/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#27 /home/ecsahc/public_html/library/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#28 /home/ecsahc/public_html/library/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#29 /home/ecsahc/public_html/library/index.php(23): Omeka_Application->run()
#30 {main}

Do you have the Item Order plugin?

If so, I think you just need to update it to the newest version.

Thanks for the reply John. I had to rollback to version 2.1.4. Will implement your solution when I upgrade to 2.2 in the future again.