The error is due to missing parentheses around lt_object_id(i) in your values clause of your insert statement. You are also missing a semicolon after binary_integer. Please see the minimally corrected code below.