Don't bother doing a query if not id