I have mysql query like this below:
$missingTypo = mysql_query("SELECT m.ID
FROM table1 AS m
LEFT JOIN table2 AS ut
ON ut.matchID = m.ID
WHERE data > '$now'
EXCEPT
SELECT m.ID
FROM table1 AS m
LEFT JOIN table2 AS ut
ON ut.matchID = m.ID
WHERE data > '$now'
AND ut.typer = '$name'");
First state query returns 3 result [10, 11, 12], second return 1 result [10]. Outcome of whole query should be [11, 12] but it doesn't work. var_dump function return false. But, if I exchange "EXCEPT" to for example "UNION ALL" it works fine and gives [10, 11, 12, 10].
Please help.