Updata phpAPI query