No LIKE condition for mysql?

Which may be enough. However, I think you may be making things more complicated than necessary. I've never used a dummy condition like that. I think the problem may be the way the conditions are grouped/nested. I think it might be useful to look at this thread.