Adjust getting permalink

Job ID: 30745621

Budget: €30 – €250 EUR

I use a table to show custom post list (WpDataTables). The plug-in use part of the code (Editable) SQL:
CONCAT('<a href="',posts_clases.guid,'" target="_self">',posts_clases.post_title,'</a>').

All work fine, anyway in the front end table the post link is in the basic format (before rewrite):
http://mydomain.net/?post_type=clases&p=2716

After WP rewrite the post link is:
https://mydomain.net/clases/empezar-respirando

REQUEST: To get permalink to show in the table the rewrite link before click.

NOTE: is possible to edit the SQL code or to use Plug-in filter Hook (in function file or snippets plug-in):
https://wpdatatables.com/documentation/information-for-developers/filters
Related categories: PHP JavaScript SQL WordPress MySQL