there is a typo on line 10 of the function "entry_coll_tag_set"
it reads "10 WHERE entry_id = obj_id" it should read "10 WHERE entry_id = obj_id;"
it is missing the trailing ";"