So I run this qry via phpmyadmin with php mysql Client API v. 3.23.49.
Code:
SELECT
`shownum`, `showdate`, `showdesc`, `venue`, `city`, `state`
FROM `table1`
WHERE `showdate`
NOT IN
(SELECT DISTINCT(`date`) FROM `table2`)
This works fine until I run the same qry on an identical database on my host's server with php mysql Client API v. 4.0.25. MySQL throws the following error:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT `date` FROM `table2 ` ) LIMIT 0, 30' at line
Is my syntax really incorrect or do the different versions dislike my 'nested' SELECT statement?