you should apply strtoupper as SQL keywords are case insensitive