Consulta:
SELECT COUNT(1)
            FROM banner
                 LEFT JOIN `banner-categoria` USING(idcategoria)
            WHERE (idlenguaje = '1' and banner.estadobanner = 'Activo' and idcategoria ='2')
            ORDER BY idbanner > idbanneractual DESC, banner.idbanner
Error MySQL:
MySQL server has gone away

DebugTrace:
#0  Conexion->consultar(
            SELECT COUNT(1)
            FROM banner
                 LEFT JOIN `banner-categoria` USING(idcategoria)
            WHERE (idlenguaje = '1' and banner.estadobanner = 'Activo' and idcategoria ='2')
            ORDER BY idbanner > idbanneractual DESC, banner.idbanner
        ) called at [/home/calasan2/public_html/sitio/Clases/Cms/clase.banner.php:181]
#1  Banner->Lista(Array ([idcategoria] => 2,[modo] => imagensola)) called at [/home/calasan2/public_html/sitio/inc.title.php:3]
#2  require_once(/home/calasan2/public_html/sitio/inc.title.php) called at [/home/calasan2/public_html/sitio/inc.arriba.php:4]
#3  require_once(/home/calasan2/public_html/sitio/inc.arriba.php) called at [/home/calasan2/public_html/sitio/inc.superior.php:9]
#4  require_once(/home/calasan2/public_html/sitio/inc.superior.php) called at [/home/calasan2/public_html/sitio/Contenido.php:27]