Server-side filter returns SQL error when using "contains" or "starts with" clauses

@formerstaff

I just installed and tested on 2.1.1 . looks like the issue is still there …

[Fri Feb 05 23:27:53.869688 2016] [proxy_fcgi:error] [pid 7051:tid 139998334473984] [client 72.83.0.139:48275] AH01071: Got error ‘PHP message: REST Exception #500 > Failed to retrieve records from ‘ch_notifications’.\nSQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘starts with ‘2070’) ORDER BY ins_ts DESC LIMIT 10’ at line 1\n’,

Note the 'start with …