Exception Object
(
    [message:protected] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND tblservicios.sw_active = 1
        ORDER BY sServicio' at line 6
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /home/o10media/public_html/sensacionrural.es/class/bdmain.class.php
    [line:protected] => 38
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/o10media/public_html/sensacionrural.es/new-portal/landing/model/ServiciosModel.php
                    [line] => 40
                    [function] => ExecSelect
                    [class] => BDMain
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
        SELECT distinct (sServicio)
        FROM tblcasasrurales
        INNER JOIN tblcasasruralesservicios ON (tblcasasruralesservicios.idCasaRural = tblcasasrurales.idCasaRural)
        INNER JOIN tblservicios ON (tblservicios.idServicio = tblcasasruralesservicios.idServicio)
        WHERE tblservicios.idServicio = 
        AND tblservicios.sw_active = 1
        ORDER BY sServicio        
        
                        )

                )

            [1] => Array
                (
                    [file] => /home/o10media/public_html/sensacionrural.es/new-portal/availability/AvailabilityServicesController.php
                    [line] => 38
                    [function] => getServiciosFiltro
                    [class] => ServiciosModel
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                        )

                )

        )

    [previous:Exception:private] => 
)