Probably a silly question, but did you remember to set your database before you ran the query? (IE: use peq; )
If it's still not working, you can use a program like HeidiSQL to pull up the database and run the query from there. If it still doesn't work, well, someone would probably actually need to see your database structures.
__________________
Hmm.
|