The code <?php echo($rsValidateParticipant->debugSQL()); ?> is not showing any error but rather echoing the SQL statement.
This SQl statement "SELECT regno, title, surname, othernames, state, country, assembly, sex, maritalstatus, age, phone, email, @curRow := @curRow + 1 AS sn FROM registration" runs perfectly well on phpMyAdmin