fix minor bug in building where clause for codeshare update