title: Magento error "Cannot apply the coupon code."
body: <p>I'm trying to apply a coupon code using a Shopping Cart Rule in Magento 1.4.1.1 but it doesn't seem to work.</p>
  
  <p>I'm getting an "Cannot apply the coupon code." error.
  And here is the exception from the exception.log file:</p>
  
  <pre><code>2013-10-03T17:47:21+00:00 ERR (3): 
  exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'coupon_code' in 'where clause'' in /home1/interkid/public_html/lib/Zend/Db/Statement/Pdo.php:234
  Stack trace:
  #0 /home1/interkid/public_html/lib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo-&gt;_execute(Array)
  #1 /home1/interkid/public_html/lib/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement-&gt;execute(Array)
  #2 /home1/interkid/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract-&gt;query('SELECT `main_ta...', Array)
  #3 /home1/interkid/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(333): Zend_Db_Adapter_Pdo_Abstract-&gt;query('SELECT `main_ta...', Array)
  #4 /home1/interkid/public_html/lib/Zend/Db/Adapter/Abstract.php(706): Varien_Db_Adapter_Pdo_Mysql-&gt;query(Object(Varien_Db_Select), Array)
  #5 /home1/interkid/public_html/lib/Varien/Data/Collection/Db.php(707): Zend_Db_Adapter_Abstract-&gt;fetchAll(Object(Varien_Db_Select), Array)
  #6 /home1/interkid/public_html/lib/Varien/Data/Collection/Db.php(620): Varien_Data_Collection_Db-&gt;_fetchAll(Object(Varien_Db_Select))
  #7 /home1/interkid/public_html/lib/Varien/Data/Collection/Db.php(590): Varien_Data_Collection_Db-&gt;getData()
  #8 /home1/interkid/public_html/lib/Varien/Data/Collection.php(264): Varien_Data_Collection_Db-&gt;load()
  #9 /home1/interkid/public_html/app/code/local/BTS/Checkout/Model/Observer.php(22): Varien_Data_Collection-&gt;getItems()
  #10 /home1/interkid/public_html/app/code/core/Mage/Core/Model/App.php(1228): BTS_Checkout_Model_Observer-&gt;addShipping(Object(Varien_Event_Observer))
  #11 /home1/interkid/public_html/app/code/core/Mage/Core/Model/App.php(1209): Mage_Core_Model_App-&gt;_callObserverMethod(Object(BTS_Checkout_Model_Observer), 'addShipping', Object(Varien_Event_Observer))
  #12 /home1/interkid/public_html/app/Mage.php(416): Mage_Core_Model_App-&gt;dispatchEvent('sales_quote_sav...', Array)
  #13 /home1/interkid/public_html/app/code/core/Mage/Core/Model/Abstract.php(379): Mage::dispatchEvent('sales_quote_sav...', Array)
  #14 /home1/interkid/public_html/app/code/core/Mage/Sales/Model/Quote.php(188): Mage_Core_Model_Abstract-&gt;_beforeSave()
  #15 /home1/interkid/public_html/app/code/core/Mage/Core/Model/Abstract.php(304): Mage_Sales_Model_Quote-&gt;_beforeSave()
  #16 /home1/interkid/public_html/app/code/core/Mage/Checkout/controllers/CartController.php(368): Mage_Core_Model_Abstract-&gt;save()
  #17 /home1/interkid/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_CartController-&gt;couponPostAction()
  #18 /home1/interkid/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action-&gt;dispatch('couponPost')
  #19 /home1/interkid/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(177): Mage_Core_Controller_Varien_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http))
  #20 /home1/interkid/public_html/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front-&gt;dispatch()
  #21 /home1/interkid/public_html/app/Mage.php(596): Mage_Core_Model_App-&gt;run(Array)
  #22 /home1/interkid/public_html/index.php(80): Mage::run('', 'store')
  #23 {main}
  </code></pre>
  
  <p>Can someone please give me a hand with this?</p>
  
  <p>Thanks in advance!</p>