You need to use the backticks instead of the single quotes for your column names. Consider this WHERE
condition:
WHERE 'Newsletter per e-mail' =-1
It's comparing the string constant Newsletter per e-mail
to -1
. The result of the comparison is always false
. Try this instead:
WHERE `Newsletter per e-mail` = -1
Now it's referring to a column name and not a string constant.
Finally, avoid column names that need backticks whenever possible (which is almost all the time). As you can see, they tend to lead to trouble.