[email protected]
[Top] [All Lists]

Re: Mysql 1064 error

Subject: Re: Mysql 1064 error
From: cricket
Date: Thu, 28 Apr 2011 14:20:26 -0400
On Wed, Apr 27, 2011 at 3:28 PM, blue_negative <james.dcunha@xxxxxxxxx> wrote:
> Hi,
> I am using Cake 1.3.8 and get a Mysql error code 1064. Following is
> the details in debug mode
> Query: check
> Error: 1064: 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 1
> The associated mode has following relationships:
> 4 hasMany
> 1 belongsTo
> 1 HBTM
> Its seems that the it is generating a sql query "Check" and hence it
> is throwing the error. The interesting part is it does not generate
> this "check: query for my other mode.

Can't say for sure as you haven't posted either the code or the SQL,
but this usually happens when you call a nonexistant method of the
model, eg.

Our newest site for the community: CakePHP Video Tutorials 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.

To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at 

<Prev in Thread] Current Thread [Next in Thread>