DylanBlitz Posted January 24, 2003 Share Posted January 24, 2003 Can anyone tell me how to make this SQL query mysql friendly? select names.name_id, names.name, test.test_id from names INNER JOIN test ON names.name_id = test.name_id WHERE (names.used = 1 AND (test.test_id NOT IN(select distinct test_id from auth))) ORDER BY names.name I get the error: You have an error in your SQL syntax near \'select DISTINCT boob_id FROM auth))) ORDER BY names.name LIMIT 0, 30\' at line 1 I have the database in both SQL and mysql and it works in sql, just not in mysql, don\'t know if you can do what I\'m trying to do in mysql. Much appreciated Quote Link to comment https://forums.phpfreaks.com/topic/91-mysql-select-help/ Share on other sites More sharing options...
effigy Posted January 25, 2003 Share Posted January 25, 2003 mysql does not (yet) support subqueries, just break them apart and use php to piece them together. Quote Link to comment https://forums.phpfreaks.com/topic/91-mysql-select-help/#findComment-264 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.