rastkocvetkovic
Programmer
Hello!
I'm experiencing a problem on Apache (1.3.26) + mySQL (3.23.39) + PHP (4.2.2).
The following SQL statement...
SELECT id FROM News WHERE id = (SELECT MAX(id) FROM News)
...returns an error saying:
You have an error in your SQL syntax near 'SELECT MAX(id) FROM News)' at line 1
In the mySQL documentation it says that SUBSELECTS work without any problem. Is there anything I can do? Thank you for your help!
Rastko
I'm experiencing a problem on Apache (1.3.26) + mySQL (3.23.39) + PHP (4.2.2).
The following SQL statement...
SELECT id FROM News WHERE id = (SELECT MAX(id) FROM News)
...returns an error saying:
You have an error in your SQL syntax near 'SELECT MAX(id) FROM News)' at line 1
In the mySQL documentation it says that SUBSELECTS work without any problem. Is there anything I can do? Thank you for your help!
Rastko