View Single Post
  #1 (permalink)  
Old 03-13-2008, 03:01 PM
dlbrown06 dlbrown06 is offline
Junior Member
 
Join Date: Mar 2008
Posts: 11
Default Too many columns for the primary key?

I have a model called Article. The primary key is 'id'

When I do this in my controller:
$article = new Article;
$row = $article->find(37, 'id');

If get this error:
Fatal error: Uncaught exception 'Zend_Db_Table_Exception' with message 'Too many columns for the primary key'


Does anyone know what the problem is with this? Thanks for any help guys.
Reply With Quote