OR condition not working

The problem is strictly with your query… or to be more precise, with your misunderstanding of your query 😉

You’ve put || in there and you assume it is OR operator, but… depending on configuration of server it can act as OR or… string concatenation 😉

So change it to OR and it should work fine, I guess…