Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and nCodFuncion = (select nCodFuncion from funcionalidad where sNombre = 'panel-' at line 2
select 1 as bEscritura from funcionalidadperfil where nCodPerfil = and nCodFuncion = (select nCodFuncion from funcionalidad where sNombre = 'panel-de-control')
Filename: /home/clinicazaidin/public_html/models/privado_model.php
Line Number: 35