it should be like this: 'KI$tableIndex.Keyword = ' . $g_ado_db->escape($keyword);
new escape adds quotes (based on used db). same for the other edits.