View Single Post
Old 03-26-2009, 08:16 AM   #1 (permalink)
stewart
WebDev'n Beer Drnkn' Fool
 
stewart's Avatar
 
Join Date: Dec 2007
Location: Denver, CO
Posts: 59
Thanks: 2
stewart is on a distinguished road
Angry Unknown column in 'field list'

Alright guys, I am totally 100% all and out stumped on this. It makes absolutely NO sense to me.

I have google'd quite a bit for a solution. I've come across many similar problems, the fixes range from adding different quotes, ticks, and as well as making sure the column doesn't have a space in its name.

If I run the following query directly in phpMyAdmin :
Code:
SELECT `salt` FROM `users` WHERE `username`='beezm';
It works fine. Returns my result.

When I try running it from a script of my own, it errors out and gives me
Code:
Unknown column 'salt' in 'field list'
Makes no sense. If my query was wrong, why does it run fine when I enter it manually ?!


Aggghhhh!!! I am done for tonight, making this post and heading off to bed. Any suggestions would be GREATLY appreciated.

Thanks guys.
__________________
stewart::howe
Web Developer & Programmer
CelerMedia.Com | iAmStewart.com | CelerLabs.com
Send a message via ICQ to stewart Send a message via AIM to stewart Send a message via MSN to stewart Send a message via Yahoo to stewart
stewart is offline  
Reply With Quote