Problem solve Get help with specific problems with your technologies, process and projects.

1064 error on query with subquery

I'm using MySQL version 4.0.18-nt and php-myadmin with version 4.3.4. I have a query with a subquery:
select num from request
where num in (select max(num) from request group by num2)
I get the #1064 error ("You have an error in your SQL syntax"), and I don't know why. According to the documentation, my syntax is correct. Any thoughts?
Subqueries are only available from MySQL 4.1 and higher. You will need to upgrade.
This was last published in August 2004

Dig Deeper on Linux servers



Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.