On Jan 11, 2011, at 07:10, javier0051 wrote:

> Alright... I set the debug mode to 1 under config/core.php... There's
> indeed an error (thoug the site is setup just as in the old machine).
> This is what I'm getting:
> 
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Warning (512): SQL Error: 1054: Unknown column 'conditions' in 'where
> clause' [CORE/cake/libs/model/datasources/dbo_source.php, line 525]
> 
> Code | Context
> 
> $sql  =       "SELECT COUNT(*) AS `count` FROM `articles` AS `Article` LEFT
> JOIN `categories` AS `Category` ON (`Article`.`category_id` =
> `Category`.`id`) LEFT JOIN `images` AS `Image` ON
> (`Image`.`foreign_id` = `Article`.`id` AND `Image`.`thumb` = 1 AND
> `Image`.`model` = 'Article') LEFT JOIN `galleries` AS `Gallery` ON
> (`Gallery`.`article_id` = `Article`.`id`)  WHERE conditions = ('43')
> "
> $error        =       "1054: Unknown column 'conditions' in 'where clause'"

At the risk of stating the obvious, it sounds like there is no column called 
"conditions". Is there a column called "conditions" in any of the tables being 
used in this query? (Off hand, I'm not sure which table it wants that column to 
be in.)

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to