WIP: Fixed data type errors when filtering integer column with LIKE statement

You can reproduce this error with [Laravel-4-Bootstrap-Starter-Site](https://github.com/andrew13/Laravel-4-Bootstrap-Starter-Site) application when you filtering comments (http://localhost:8000/admin/comments)
Tested on MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle (http://sqlfiddle.com/#!12/cd1eb/1/0)