Re: Strange error in query with joins and subquery

2005-10-18 Thread SGreen
(response interspersed) Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote on 10/17/2005 07:49:36 PM: > Just recently (possibly since upgrading to MySQL 5.0.13 RC), I've been > getting the following error with queries like the one below. > > Unknown column 'photos.id' in 'on clause' (1054) > > SEL

Strange error in query with joins and subquery

2005-10-17 Thread Jasper Bryant-Greene
Just recently (possibly since upgrading to MySQL 5.0.13 RC), I've been getting the following error with queries like the one below. Unknown column 'photos.id' in 'on clause' (1054) SELECT photos.* FROM photos LEFT JOIN tags_photos ON tags_photos.photo = photos.id WHERE 1 AND tags_photos.tag IN

Re: Error in Query

2002-12-08 Thread Doug Thompson
MySQL doesn't accept variables for field length values. Your query should look something like this: CREATE TABLE `db` (`host` VARCHAR(localhost) NOT NULL, `db` VARCHAR(64) NOT NULL, `user` VARCHAR(64) NOT NULL, `select_priv` CHAR(1) NOT NULL, `insert_priv` CHAR(1) NOT NULL, `update_priv` CHAR(1

Re: Error in Query

2002-12-07 Thread John Coder
On Sat, 2002-12-07 at 21:50, Deepak Suthar wrote: > I'm using Phpadmin to add these fields with these values, and it keeps > crashing...what am I missing? > > -Deepak > > Error > > SQL-query : > > CREATE TABLE `db` (`host` VARCHAR(localhost) NOT NULL, `db` VARCHAR(dsuthar) > NOT NULL, `user` VA

Re: Error in Query

2002-12-07 Thread Deepak Suthar
I'm using Phpadmin to add these fields with these values, and it keeps crashing...what am I missing? -Deepak Error SQL-query : CREATE TABLE `db` (`host` VARCHAR(localhost) NOT NULL, `db` VARCHAR(dsuthar) NOT NULL, `user` VARCHAR(dsuthar) NOT NULL, `select_priv` VARCHAR(Y) NOT NULL, `insert_priv

RE: group by error in query

2001-03-21 Thread Daniel Kirk
2001 10:54 To: Daniel Kirk; [EMAIL PROTECTED] Subject: Re: group by error in query On Wed, Mar 21, 2001 at 07:31:20PM +1100, Daniel Kirk wrote: > Hi, > > I've just ported from SQLServer where this query ran fine, however MySQL > gives an "invalid use of group function" er

Re: group by error in query

2001-03-21 Thread Fred van Engen
On Wed, Mar 21, 2001 at 07:31:20PM +1100, Daniel Kirk wrote: > Hi, > > I've just ported from SQLServer where this query ran fine, however MySQL > gives an "invalid use of group function" error. > > Any ideas? > > thx > > dan > > select us.username, us.id as userid, count(*) as tips from User

RE: group by error in query (RESEND, don't think it came through)

2001-03-21 Thread Daniel Kirk
Hi, I've just ported from SQLServer where this query ran fine, however MySQL gives an "invalid use of group function" error. Any ideas? thx dan select us.username, us.id as userid, count(*) as tips from UserTippingInfo u, Matches m, Users us WHERE round = 23 AND us.id = u.userid AND m.match

group by error in query

2001-03-21 Thread Daniel Kirk
Hi, I've just ported from SQLServer where this query ran fine, however MySQL gives an "invalid use of group function" error. Any ideas? thx dan select us.username, us.id as userid, count(*) as tips from UserTippingInfo u, Matches m, Users us WHERE round = 23 AND us.id = u.userid AND m.match