Hi claloano,
Apologies but I wouldn't know how to run this query. We only use the GUI supplied in http://#phonesystemIP#/recordings/index.php and search for numbers dialed or recent numbers.
Is this query to resolve or investigate the issue? Or is it a workaround?
Thanks,