This is the code that works:
<?php if (WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Surveys', 'Make Live', true, $row_rsSurveys['ContentPageSetOrder'] ) === "YES") { // Show if column... ?>
You were missing the ",true" argument before the order. It keeps the cms from including all of the editable code so that you can do the string comparison directly.