Fixing query see BT#7754
Wiki PHP fixes.