Jump to content

[SOLVED] Unknown column 'month' in 'where clause'


Shea

Recommended Posts

Hi! Sorry if this has already been posted, but I can't seem to find it.

 

The query is:

SELECT * FROM `posts` WHERE (month='10' AND year='2007')

 

I've run it through PHP MyAdmin and it works perfectly. When I run it though PHP, I've been getting the following error:

Unknown column 'month' in 'where clause'

 

I know the column is there. The query is just unable to find it for some reason. Any help would be much appreciated.

 

MySQL version: 5.0.16

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.