sql syntax error at line 186 in codeigniter 2.2.0

add a space before the exclamation mark