Real Final edit (since it seems like people think is a null :P):
Let me rephrase it, since it is hard to explain and it seems no one can help me. I made 2 stored procedures in MySQL with phpMyAdmin. Both with an IN parameter VARCHAR(500) in utf8, var1.
With a value of 'novalue' for the In parameter these are the behaviours:
tableA:
------------------
a | b | example
------------------
1 | A | 1
2 | A | 1
3 | T | 1
SELECT * FROM tableA
WHERE (var1 = 'novalue')
SELECT * FROM tableA
WHERE (var1 = 'novalue' OR var1 = tableA.col1)
Expected output (Only first procedure will give me this result):
------------------
a | b | example
------------------
1 | A | 1
2 | A | 1
3 | T | 1
So my problem is, how to get the same expected output on the second procedure?
Thanks in advance