Fixed unmerged code in APLCore:run

The whole class function failed to merge, so the old code was
overwritten to the new code for running the modified query.