Build Sql Updated to only be used where when where !=0