You are passing the literal string 'untill' in your SQL, not concatenating the variable into it.
Note: please use code tags whenever you post code as required by the forum rules. I have added them for you on this occasion but you must do it yourself in future, please.
Bookmarks