I\'m new to mysql so please be kind. I\'m getting the following error for my script and im not sure whats wrong with it.
SELECT uoid
FROM mint
WHERE mint_id=\'
MySQL does not have an INTERSECT keyword. See this question and this one for suggestions about how to achieve what you're after.
INTERSECT
is not supported in MySQL. You need to restructure your query somehow. You might be able to use a subquery if you version of MySQL supports subqueries.
This is because intersect only work on same table, not on different tables as you are trying. See this
In place of intersect use join statement syntax. And INTERSECT does exist in sql