Fixed ambiguous field in TypeAgent query
Must use prepare()->execute() for built queries