database error (ERROR: invalid input syntax for type integer: "" LINE 1: ...did = ( select sendid from clickthrough_urls where id = '' ) ^)