To repair that, change this file: C:\Program Files (x86)\PyRad Classic\Components\syscodes\pageactionsdetails.xml
find <code id="class_pagename">
and add in imports this from sqlalchemy import text
Then change all quoted texts to text() in:
<code id="orderbystatement">
<code id="groupbystatementwithdefault">
<code id="orderbystatementwithdefault">
<code id="orderbystatementsingle">