fixed error in fetching assays for assay type according to uri's

error was picked up by postgresql, whereas mysql was more forgiving. was using the suggestedtype object id rather than its url
in the query.
Also removed @uris which appears to be unused.