' holds a special meaning in the SQL of end of string and so is the problem.