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 'ORDER BY sProvincia' at line 7
    [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] => 41
                    [function] => ExecSelect
                    [class] => BDMain
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
        SELECT distinct (tblcasasrurales.sProvincia),tblcasasrurales.idProvincia,tblservicios.sServicio,tblprovincias.sRutaImg
        FROM tblcasasrurales
        INNER JOIN tblcasasruralesservicios ON (tblcasasruralesservicios.idCasaRural = tblcasasrurales.idCasaRural)
        INNER JOIN tblservicios ON (tblservicios.idServicio = tblcasasruralesservicios.idServicio)
        INNER JOIN tblprovincias ON (tblprovincias.idProvincia = tblcasasrurales.idProvincia)
        WHERE tblservicios.idServicio = 
        ORDER BY sProvincia        
        
                        )

                )

            [1] => Array
                (
                    [file] => /home/o10media/public_html/sensacionrural.es/new-portal/availability/AvailabilityServicesController.php
                    [line] => 58
                    [function] => getProvinciasServicios
                    [class] => ServiciosModel
                    [type] => ->
                    [args] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [guardaorden] => 1
                                    [provincia] => 51
                                    [nom_caract] => 
                                    [buscar] => 
                                    [poblacion] => 
                                    [comunidad] => 
                                    [zona] => 
                                    [capacidad] => 
                                    [fechae] => 
                                    [fechas] => 
                                    [id_entity] => 51
                                    [regxpag] => 
                                    [pag] => 1
                                )

                        )

                )

        )

    [previous:Exception:private] => 
)