I use the following query:
SELECT * from ads where user!='$id' and ready=1 and category='$category' and main.id=user and main.credits>4;
And it returns #1109 - Unknown table 'main' in where clause
But the "main" table exists. What gives?
I've tried it with other tables in the same database and it says that they all don't exist.
Any ideas?
Thanks
SELECT * from ads where user!='$id' and ready=1 and category='$category' and main.id=user and main.credits>4;
And it returns #1109 - Unknown table 'main' in where clause
But the "main" table exists. What gives?
I've tried it with other tables in the same database and it says that they all don't exist.
Any ideas?
Thanks