added fix to enable search by id. Otherwise "ambigous field" in SQL request is returned