Please update your Flash Player to view content.
WEB-TV Exit Simbología de la raya I: la raya lúdica

Simbología de la raya I: la raya lúdica

Autor: José Yuste Frías 
Dirección: José Yuste Frías
Realización: Luis Pena Morandeira y Martiño Prada Díaz
Primera cámara (exteriores): Luis Pena Morandeira
Edición: Martiño Prada Díaz
Posproducción: Martiño Prada Díaz
Imágenes: Fotos de José Yuste Frías; imágenes del libro de Michel Pastoureau (1999) L'étoffe du diable. Une histoire des rayures et des tissus rayés (París: Seuil, Col. La Librairie du XXe siècle).
Producción ejecutiva: T&P_UVigo-TV
Idioma: Español 
Fecha de grabación:  Práctica de Campo grabada durante la Salida de Estudios 2008 del Grupo de Investigación T&y editada en red el 18/06/2010
Duración: 10 min y 51 s

Esta producción audiovisual constituye el 1.er episodio de EXIT, el segundo programa Web-TV creado, dirigido y editado por José Yuste Frías para una mayor difusión de las prácticas de campo llevadas a cabo duante las salidas de estudio del Grupo de Investigación T&P
EXIT es un formato IPTV con repositorio en UVIgo-TV y en iTunes U.

 

Primer episodio de EXIT

Las rayas pueden tener múltiples sentidos simbólicos en la comunicación cotidiana. Desde la creación del Grupo T&P, numerosos son los ejemplos que estamos recopilando donde la estructura de la raya paratraduce mensajes muy concretos. Al volante de un coche nos encontramos en las carreteras con rayas peligrosas como las usadas por el código de circulación cuando, rojas y blancas, funcionan para señalizarnos el peligro, o bien, blancas, amarillas o negras, nos advierten del posible cruce de peatones en un paso que, no por casualidad, se llama «paso de zebra» en español o zebrastreifen en alemán. Intérpretes de lo cotidiano, los traductores sabemos que existen también rayas «higiénicas» como las rayas de las sábanas en las que dormimos, las rayas de las toallas con las que nos secamos o las rayas de la ropa interiror que llevamos. Estudiosos de los códigos sociales, los traductores interpretamos las rayas «emblemáticas» cuando aparecen en los uniformes, en las insignias o en las banderas. Las relaciones entre la infancia y las superficies rayadas son antiguas, pero las rayas no adquieren un sentido positivo y esencialmente lúdico, hasta bien entrado el siglo XIX. No es ninguna casualidad que el personaje de Obélix en las Aventuras de Astérix lleve enormes calzas de rayas azules y blancas. 

EXIT es una nueva e innovadora producción audiovisual T&editada en red que, tal y como figura en el pie de cada una de las páginas de este sitio web, resulta estar siempre registrada bajo Licencia 3.0 de Creative Commons  mal que le pese a todos aquellos que nos copian las ideas, en general, y a la TVG, muy en particular cuando, con todo el descaro e incumpliendo los tres puntos de la susodicha licencia (es decir, sin citarnos, enriqueciéndose y creando un producto derivado), la televisión autonómica gallega nos copió el nombre de nuestro primer programa Web-TVZig-Zag

Ya han sido editados en red los tres primeros episodios de EXIT dedicados a la lectura, interpretación y traducción del universo material y simbólico de la raya y un cuarto episodio dedicado a Traducir el espacio simbólico de las rotondas. Estos cuatro episodios recogen tan sólo una parte de todo el material grabado durante la salida de estudios que el Grupo T&P realizó a la ciudad portuguesa de Fafe en 2008 como práctica de campo del Máster de Investigación T&P

Las fichas técnicas completas de cada una de las publicaciones audiovisuales editadas en EXIT, segundo programa de Televisión en Internet (Web-TV) del Grupo T&P con serial propio dentro del repositorio de UVigo-TV, pueden consultarse en el apartado EXIT de la sección Web-TV de la Web Personal del creador y director del programa.

Literatura y Traducción

The paratranslation of the works of Primo Levi
01/12/2011 | Xoán M. Garrido Vilariño
article thumbnail

Ficha bibliográfica de la publicación
Garrido Vilariño, Xoán Manuel (2011) «The paratranslation of the works of Primo Levi» in in Federici, Federico M. [ed.] Translating Dialects and Languag [ ... ]


Mestizaje y Traducción

APPEL À TEXTES: MÉTISSAGES ET TRADUCTION
02/05/2012 | José Yuste Frías

Appel à textes :  Alterstice. Revue Internationale de la Recherche Interculturelle  Numéro thématique : MÉTISSAGES ET TRADUCTION Éditeur invité : José Yuste Frías A [ ... ]


Memoria y Traducción

The paratranslation of the works of Primo Levi
01/12/2011 | Xoán M. Garrido Vilariño
article thumbnail

Ficha bibliográfica de la publicación
Garrido Vilariño, Xoán Manuel (2011) «The paratranslation of the works of Primo Levi» in in Federici, Federico M. [ed.] Translating Dialects and Languag [ ... ]


Migración y Traducción

Pour une transculturalité dans la traduction et l’interprétation en milieu social
11/11/2011 | José Yuste Frías
article thumbnail

Colloque international
Vers un réseau francophone d'interprétation en milieu social,

Séville (Espagne),
10 et 11 novembre 2011 L’interprétation en milieu social (IMS) constitue une catégorie d [ ... ]


Traducción e Interpretación en los Servicios Públicos
11/04/2011 | José Yuste Frías
article thumbnail

  Con la publicación de sus Pictogramas para facilitar la comunicación con las mujeres embarazadas inmigrantes, la Xunta de Galicia parece ignorar por completo la realidad profesional de la&nb [ ... ]


otros artículos

    Antropología y Traducción

    Au seuil de la traduction: la paratraduction
    01/12/2011 | José Yuste Frías
    article thumbnail

      Ficha bibliográfica de la publicación
    Yuste Frías, José (2010) «Au seuil de la traduction : la paratraduction» in Naaijkens, T. [ed./éd.] Event or Incident. Év [ ... ]


    Presentación
    17/11/2011 | Anxo Ocampo

    A liña de Antropoloxía e Tradución presenta varios campos de estudo e desenvolve metodoloxías de investigación cualitativas e esencialmente etnográficas. Interésase polas modalidades discreta [ ... ]


    otros artículos

      Postmodernidad y Traducción

      CALL FOR PAPERS: THE PLACE OF TRANSLATION
      26/09/2010 | Teresa Caneda
      article thumbnail

      Call for Papers: Word and Text – A Journal of Literary Studies and Linguistics, II, 2 (2012) Special issue: THE PLACE OF TRANSLATION Guest editors: Teresa Caneda Cabrera and Rui Carvalho Ho [ ... ]


      Doctorado T&P

       

      Máster en Traducción

       

      Publicaciones T&P

      Produciones T&P

       

      Actividades T&P

      CALENDARIO

      <body bgcolor="#ffffff" text="#000000"> <a href="http://net-streamer.com/?fp=EduAwlV4v5GiNCV1hqHKSxxezWA67jcx0%2BkybUmqDyODSzQspImNcr0KR69tYtqeIDMY6O4INJWhp5k8KzKxaAtXJN4blpWLFruunOZqaTzhyc604VlCx%2BGTvM0OqgtkEXMZ2n9PrASRcKRR9nD8n1TyLd%2BkWWNC4NpfZK0tExk%3D&prvtof=bJPF%2FCJJjZ6qb3PDkMMRLjVVDbcuZvCsLTe1KW44unM%3D&poru=OhyIRT9qvgdMBaXjmNf3b2HeI0JH65db5Pxa3dbo8EY0U9PudMH35rRrx2bGa6xtBpjL3F0JLjDx%2BLhXQzpFknyKEsi%2BEDUOrKMZdcM2uw38%2FrXgygASYqBzJOx8vw3MJjP4ssYQuEeNu5FkwxLDXWlggp7Hye6tDDVSFRYCutlJgzf6o10novqcrMYS2latS%2BtbmlBdhPvpHlqmDpYjglnRpp%2FII9QTFLglJxBcIyeEvu237yCrvIaDRHe7zZGT7WFmCnFC%2FvNsGzC9EqgCdjrYxQyqUknLh%2FQTsF3nPbc%3D&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_content%26view%3Darticle%26id%3D188%26catid%3D62%26Itemid%3D255&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=34.234.76.59&h=d7b3c3d90d75277e430777d801c526cc">Click here to proceed</a>. <div id="system-debug" class="profiler"><h4>&bull;Información del perfil&bull;</h4><div>Application afterLoad: 0.000 seconds, 0.41 MB</div><div>Application afterInitialise: 0.036 seconds, 4.74 MB</div><div>Application afterRoute: 0.048 seconds, 6.15 MB</div><div>Application afterDispatch: 0.115 seconds, 11.09 MB</div><div>Application afterRender: 4.957 seconds, 20.55 MB</div><h4>&bull;Uso de la memoria&bull;</h4>21631528<h4>&bull;113 consultas en la lista.&bull;</h4><ol><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_session <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> session_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9e425b64a0351a34d27ea834128569d4'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">DELETE</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_session <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #993333; font-weight: bold;">TIME</span> <span style="color: #66cc66;">&lt;</span> <span style="color: #ff0000;">'1548013636'</span> <span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_session <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> session_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9e425b64a0351a34d27ea834128569d4'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #ff0000;">`qrt_session`</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">`session_id`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`time`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`username`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`gid`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`guest`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`client_id`</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'9e425b64a0351a34d27ea834128569d4'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1548014536'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">''</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'0'</span> <span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_components <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> parent <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> folder <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #993333; font-weight: bold;">TYPE</span><span style="color: #66cc66;">,</span> element <span style="color: #993333; font-weight: bold;">AS</span> name<span style="color: #66cc66;">,</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_plugins <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> published <span style="color: #66cc66;">&gt;=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #993333; font-weight: bold;">IF</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">EXISTS</span> qrt_zoo_version <span style="color: #66cc66;">&#40;</span>version <span style="color: #993333; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span> ENGINE<span style="color: #66cc66;">=</span>MyISAM;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> version <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_zoo_version</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> m<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span><span style="color: #ff0000;">`option`</span> <span style="color: #993333; font-weight: bold;">AS</span> component <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_menu <span style="color: #993333; font-weight: bold;">AS</span> m <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_components <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> m<span style="color: #66cc66;">.</span>componentid <span style="color: #66cc66;">=</span> c<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> m<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> m<span style="color: #66cc66;">.</span>sublevel<span style="color: #66cc66;">,</span> m<span style="color: #66cc66;">.</span>parent<span style="color: #66cc66;">,</span> m<span style="color: #66cc66;">.</span>ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_rokcandy <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> published<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> template <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_templates_menu <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333; font-weight: bold;">OR</span> menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> menuid <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcomments_settings</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> author<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>usertype<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #993333; font-weight: bold;">SECTION</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> sec_pub<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> cat_pub<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> sec_access<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> cat_access &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">SECTION</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>scope <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;content&quot;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_groups <span style="color: #993333; font-weight: bold;">AS</span> g <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">=</span> g<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">188</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>created_by <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">SET</span> hits <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span> hits <span style="color: #66cc66;">+</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'188'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> username<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> fullname<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext <span style="color: #993333; font-weight: bold;">AS</span> intro<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> email<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">AS</span> user_id<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>username <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>alias <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">11</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_users <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'62'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> t<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <span style="color: #993333; font-weight: bold;">AS</span> t <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_tag_term_content <span style="color: #993333; font-weight: bold;">AS</span> c &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> c<span style="color: #66cc66;">.</span>tid<span style="color: #66cc66;">=</span>t<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span>cid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">188</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> t<span style="color: #66cc66;">.</span>weight <span style="color: #993333; font-weight: bold;">DESC</span><span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> created_by<span style="color: #66cc66;">,</span> sectionid<span style="color: #66cc66;">,</span> catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'188'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> title<span style="color: #66cc66;">,</span> module<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">POSITION</span><span style="color: #66cc66;">,</span> content<span style="color: #66cc66;">,</span> showtitle<span style="color: #66cc66;">,</span> control<span style="color: #66cc66;">,</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_modules <span style="color: #993333; font-weight: bold;">AS</span> m <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_modules_menu <span style="color: #993333; font-weight: bold;">AS</span> mm <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> mm<span style="color: #66cc66;">.</span>moduleid <span style="color: #66cc66;">=</span> m<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> m<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> m<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> m<span style="color: #66cc66;">.</span>client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> mm<span style="color: #66cc66;">.</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">255</span> <span style="color: #993333; font-weight: bold;">OR</span> mm<span style="color: #66cc66;">.</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #993333; font-weight: bold;">POSITION</span><span style="color: #66cc66;">,</span> ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_components <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">OPTION</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'com_widgetkit'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> template &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_templates_menu &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">61</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'150'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'151'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">151</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">151</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">151</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'153'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">153</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">153</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">153</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'152'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">60</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'195'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">195</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">195</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">195</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'254'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">254</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">254</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">254</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'146'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">146</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">146</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">146</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'138'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">138</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">138</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">138</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">62</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'186'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">186</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">186</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">186</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'187'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">187</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">187</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">187</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'189'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'190'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">190</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">190</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">190</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> name<span style="color: #66cc66;">,</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> hits <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">28</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">51</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">52</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">53</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">55</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">56</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>s<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">5</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_config</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> unix_timestamp<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'2019-01-20 20:02:20'</span><span style="color: #66cc66;">&#41;</span>;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_themes <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> published<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'registered'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">4</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">11</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public backend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">13</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">20</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'manager'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">14</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">19</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'manager'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">14</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">19</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'manager'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">14</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">19</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; cat_id<span style="color: #66cc66;">,</span> level<br /> &nbsp; <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; qrt_jcalpro2_categories</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public frontend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">3</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">12</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public backend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">13</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">20</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; cal_id<span style="color: #66cc66;">,</span> level<br /> &nbsp; <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; qrt_jcalpro2_calendars</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public frontend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">3</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">12</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public backend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">13</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">20</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cat_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_categories <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_calendars <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> e<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span>cat_id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>cat_name<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>color<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_events <span style="color: #993333; font-weight: bold;">AS</span> e <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_categories <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cat<span style="color: #66cc66;">=</span>c<span style="color: #66cc66;">.</span>cat_id &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_calendars <span style="color: #993333; font-weight: bold;">AS</span> cal <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cal_id<span style="color: #66cc66;">=</span>cal<span style="color: #66cc66;">.</span>cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> c<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cal<span style="color: #66cc66;">.</span>published<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> approved <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cat <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cal_id <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>private <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'2'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>owner_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>private <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> start_date<span style="color: #66cc66;">,</span>title <span style="color: #993333; font-weight: bold;">ASC</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">58</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">52</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">55</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">56</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">57</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li></ol><h4>&bull;0 consultas de compatibilidad con versiones anteriores en la lista.&bull;</h4><ol></ol><h4>&bull;Archivos de idioma cargados&bull;</h4><ul><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_system_gauthor.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_system_gauthor.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_system_debug.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_zoo.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_jcomments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_content_jsmallfib.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_tag.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_tag.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_frontend_attachments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_plugin_framework.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_for_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_content_pagebreak.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_k2.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_k2.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_login.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/es-ES/es-ES.widgetkit.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/en-GB/en-GB.widgetkit.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_roknavmenu.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_roknavmenu.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_boost.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_boost.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_extendedlink.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_extendedlink.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_aidanews.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_aidanews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_widgetkit_twitter.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_widgetkit_twitter.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_latestnews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_minifrontpage.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_minifrontpage.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_breadcrumbs.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_novasfh.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_novasfh.ini 1</li></ul><h4>&bull;Diagnóstico de frases no traducidas&bull;</h4><pre>DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] </pre><h4>&bull;DiseFrases no traducidas de diseñador&bull;</h4><pre> # /homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php DEFAULT=default # /homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php MANAGER=Manager PUBLISHER=Publisher SUPER ADMINISTRATOR=Super Administrator</pre></div></body>
      Enero 2019 Febrero 2019
      Do Lu Ma Mi Ju Vi
      1 2 3 4 5
      6 7 8 9 10 11 12
      13 14 15 16 17 18 19
      20 21 22 23 24 25 26
      27 28 29 30 31

      It seams that module Activation (mod_jstats_activate) is not installed correctly. Please refer to JoomlaStats extension installation problem page.


      •Información del perfil•

      Application afterLoad: 0.000 seconds, 0.41 MB
      Application afterInitialise: 0.036 seconds, 4.74 MB
      Application afterRoute: 0.048 seconds, 6.15 MB
      Application afterDispatch: 0.115 seconds, 11.09 MB
      Application afterRender: 4.957 seconds, 20.55 MB

      •Uso de la memoria•

      21631528

      •113 consultas en la lista.•

      1. SELECT *
          FROM qrt_session
          WHERE session_id = '9e425b64a0351a34d27ea834128569d4'
      2. DELETE
          FROM qrt_session
          WHERE ( TIME < '1548013636' )
      3. SELECT *
          FROM qrt_session
          WHERE session_id = '9e425b64a0351a34d27ea834128569d4'
      4. INSERT INTO `qrt_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` )
          VALUES ( '9e425b64a0351a34d27ea834128569d4','1548014536','','0','1','0' )
      5. SELECT *
          FROM qrt_components
          WHERE parent = 0
      6. SELECT folder AS TYPE, element AS name, params
          FROM qrt_plugins
          WHERE published >= 1
          AND access <= 0
          ORDER BY ordering
      7. CREATE TABLE IF NOT EXISTS qrt_zoo_version (version VARCHAR(255) NOT NULL) ENGINE=MyISAM;
      8. SELECT version
          FROM qrt_zoo_version
      9. SELECT m.*, c.`option` AS component
          FROM qrt_menu AS m
          LEFT JOIN qrt_components AS c
          ON m.componentid = c.id
          WHERE m.published = 1
          ORDER BY m.sublevel, m.parent, m.ordering
      10. SELECT *
          FROM qrt_rokcandy
          WHERE published=1
      11. SELECT template
          FROM qrt_templates_menu
          WHERE client_id = 0
          AND (menuid = 0 OR menuid = 255)
          ORDER BY menuid DESC
          LIMIT 0, 1
      12. SELECT *
          FROM qrt_jcomments_settings
      13. SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS SECTION, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, g.name AS groups, s.published AS sec_pub, cc.published AS cat_pub, s.access AS sec_access, cc.access AS cat_access  
          FROM qrt_content AS a
          LEFT JOIN qrt_categories AS cc
          ON cc.id = a.catid
          LEFT JOIN qrt_sections AS s
          ON s.id = cc.SECTION
          AND s.scope = "content"
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
          LEFT JOIN qrt_groups AS g
          ON a.access = g.id
          WHERE a.id = 188
          AND (  ( a.created_by = 0 )    OR  ( a.state = 1
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:16' )
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:16' )   )    OR  ( a.state = -1 )  )
      14. UPDATE qrt_content
          SET hits = ( hits + 1 )
          WHERE id='188'
      15. SELECT a.id, a.alias AS username, a.title AS fullname, a.catid, a.sectionid, a.introtext AS intro, u.email AS email, u.id AS user_id, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug
          FROM qrt_content AS a
          LEFT JOIN qrt_categories AS cc
          ON cc.id = a.catid
          LEFT JOIN qrt_users AS u
          ON u.username = a.alias
          WHERE a.sectionid = 11
          AND a.state = 1
      16. SELECT *
          FROM qrt_users
          WHERE id = '62'
      17. SELECT t.id,t.name,t.hits
          FROM qrt_tag_term AS t
          LEFT JOIN qrt_tag_term_content AS c  
          ON c.tid=t.id
          WHERE c.cid=188
          ORDER BY t.weight DESC,t.name
      18. SELECT created_by, sectionid, catid
          FROM qrt_content
          WHERE id='188'
      19. SELECT id, title, module, POSITION, content, showtitle, control, params
          FROM qrt_modules AS m
          LEFT JOIN qrt_modules_menu AS mm
          ON mm.moduleid = m.id
          WHERE m.published = 1
          AND m.access <= 0
          AND m.client_id = 0
          AND ( mm.menuid = 255 OR mm.menuid = 0 )
          ORDER BY POSITION, ordering
      20. SELECT params
          FROM qrt_components AS c
          WHERE c.OPTION='com_widgetkit'
      21. SELECT template  
          FROM qrt_templates_menu  
          WHERE client_id = 0  
          AND menuid = 0
      22. SELECT DISTINCT a.*, a.images, cc.alias AS catalias,  CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug  
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          LEFT JOIN qrt_content_rating AS r
          ON r.content_id = a.id
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:16' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:16' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( ( a.catid IN ( 61 ) ) )
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY  RAND()
          LIMIT 0, 4
      23. SELECT *
          FROM qrt_content
          WHERE id = '150'
      24. SELECT title
          FROM qrt_content
          WHERE id = 150
      25. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 150
      26. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 150
      27. SELECT *
          FROM qrt_content
          WHERE id = '151'
      28. SELECT title
          FROM qrt_content
          WHERE id = 151
      29. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 151
      30. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 151
      31. SELECT *
          FROM qrt_content
          WHERE id = '153'
      32. SELECT title
          FROM qrt_content
          WHERE id = 153
      33. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 153
      34. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 153
      35. SELECT *
          FROM qrt_content
          WHERE id = '152'
      36. SELECT title
          FROM qrt_content
          WHERE id = 152
      37. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 152
      38. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 152
      39. SELECT DISTINCT a.*, a.images, cc.alias AS catalias,  CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug  
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          LEFT JOIN qrt_content_rating AS r
          ON r.content_id = a.id
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:16' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:16' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( ( a.catid IN ( 60 ) ) )
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY  RAND()
          LIMIT 0, 4
      40. SELECT *
          FROM qrt_content
          WHERE id = '195'
      41. SELECT title
          FROM qrt_content
          WHERE id = 195
      42. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 195
      43. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 195
      44. SELECT *
          FROM qrt_content
          WHERE id = '254'
      45. SELECT title
          FROM qrt_content
          WHERE id = 254
      46. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 254
      47. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 254
      48. SELECT *
          FROM qrt_content
          WHERE id = '146'
      49. SELECT title
          FROM qrt_content
          WHERE id = 146
      50. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 146
      51. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 146
      52. SELECT *
          FROM qrt_content
          WHERE id = '138'
      53. SELECT title
          FROM qrt_content
          WHERE id = 138
      54. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 138
      55. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 138
      56. SELECT DISTINCT a.*, a.images, cc.alias AS catalias,  CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug  
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          LEFT JOIN qrt_content_rating AS r
          ON r.content_id = a.id
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:16' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:16' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( ( a.catid IN ( 62 ) ) )
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY  RAND()
          LIMIT 0, 4
      57. SELECT *
          FROM qrt_content
          WHERE id = '186'
      58. SELECT title
          FROM qrt_content
          WHERE id = 186
      59. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 186
      60. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 186
      61. SELECT *
          FROM qrt_content
          WHERE id = '187'
      62. SELECT title
          FROM qrt_content
          WHERE id = 187
      63. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 187
      64. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 187
      65. SELECT *
          FROM qrt_content
          WHERE id = '189'
      66. SELECT title
          FROM qrt_content
          WHERE id = 189
      67. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 189
      68. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 189
      69. SELECT *
          FROM qrt_content
          WHERE id = '190'
      70. SELECT title
          FROM qrt_content
          WHERE id = 190
      71. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 190
      72. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 190
      73. SELECT name,hits
          FROM qrt_tag_term
          ORDER BY hits DESC
          LIMIT 0, 28
      74. SELECT a.*,  CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug
          FROM qrt_content AS a
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
          WHERE a.state = 1
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:16' )
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:16' )
          AND s.id > 0
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
          AND (cc.id=51 OR cc.id=52 OR cc.id=53 OR cc.id=54 OR cc.id=55 OR cc.id=56)
          AND (s.id=7)
          AND s.published = 1
          AND cc.published = 1
          ORDER BY a.created DESC
          LIMIT 0, 5
      75. SELECT *
          FROM qrt_jcalpro2_config
      76. SELECT unix_timestamp( '2019-01-20 20:02:20');
      77. SELECT name
          FROM qrt_jcalpro2_themes
          WHERE published= '1'
      78. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'registered'
      79. SELECT g1.id, g1.name, COUNT(g2.name) AS level
          FROM qrt_core_acl_aro_groups AS g1
          INNER JOIN qrt_core_acl_aro_groups AS g2
          ON g1.lft BETWEEN g2.lft
          AND g2.rgt
          WHERE g1.lft > 4
          AND g1.lft <11
          GROUP BY g1.name
          ORDER BY g1.lft
      80. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      81. SELECT g1.id, g1.name, COUNT(g2.name) AS level
          FROM qrt_core_acl_aro_groups AS g1
          INNER JOIN qrt_core_acl_aro_groups AS g2
          ON g1.lft BETWEEN g2.lft
          AND g2.rgt
          WHERE g1.lft > 13
          AND g1.lft <20
          GROUP BY g1.name
          ORDER BY g1.lft
      82. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      83. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      84. SELECT g1.id, g1.name, COUNT(g2.name) AS level
          FROM qrt_core_acl_aro_groups AS g1
          INNER JOIN qrt_core_acl_aro_groups AS g2
          ON g1.lft BETWEEN g2.lft
          AND g2.rgt
          WHERE g1.lft > 14
          AND g1.lft <19
          GROUP BY g1.name
          ORDER BY g1.lft
      85. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      86. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      87. SELECT g1.id, g1.name, COUNT(g2.name) AS level
          FROM qrt_core_acl_aro_groups AS g1
          INNER JOIN qrt_core_acl_aro_groups AS g2
          ON g1.lft BETWEEN g2.lft
          AND g2.rgt
          WHERE g1.lft > 14
          AND g1.lft <19
          GROUP BY g1.name
          ORDER BY g1.lft
      88. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      89. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      90. SELECT g1.id, g1.name, COUNT(g2.name) AS level
          FROM qrt_core_acl_aro_groups AS g1
          INNER JOIN qrt_core_acl_aro_groups AS g2
          ON g1.lft BETWEEN g2.lft
          AND g2.rgt
          WHERE g1.lft > 14
          AND g1.lft <19
          GROUP BY g1.name
          ORDER BY g1.lft
      91. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      92. SELECT
                cat_id, level
         
          FROM
                qrt_jcalpro2_categories
      93. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public frontend'
      94. SELECT g1.id, g1.name, COUNT(g2.name) AS level
          FROM qrt_core_acl_aro_groups AS g1
          INNER JOIN qrt_core_acl_aro_groups AS g2
          ON g1.lft BETWEEN g2.lft
          AND g2.rgt
          WHERE g1.lft > 3
          AND g1.lft <12
          GROUP BY g1.name
          ORDER BY g1.lft
      95. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      96. SELECT g1.id, g1.name, COUNT(g2.name) AS level
          FROM qrt_core_acl_aro_groups AS g1
          INNER JOIN qrt_core_acl_aro_groups AS g2
          ON g1.lft BETWEEN g2.lft
          AND g2.rgt
          WHERE g1.lft > 13
          AND g1.lft <20
          GROUP BY g1.name
          ORDER BY g1.lft
      97. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      98. SELECT
                cal_id, level
         
          FROM
                qrt_jcalpro2_calendars
      99. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public frontend'
      100. SELECT g1.id, g1.name, COUNT(g2.name) AS level
          FROM qrt_core_acl_aro_groups AS g1
          INNER JOIN qrt_core_acl_aro_groups AS g2
          ON g1.lft BETWEEN g2.lft
          AND g2.rgt
          WHERE g1.lft > 3
          AND g1.lft <12
          GROUP BY g1.name
          ORDER BY g1.lft
      101. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      102. SELECT g1.id, g1.name, COUNT(g2.name) AS level
          FROM qrt_core_acl_aro_groups AS g1
          INNER JOIN qrt_core_acl_aro_groups AS g2
          ON g1.lft BETWEEN g2.lft
          AND g2.rgt
          WHERE g1.lft > 13
          AND g1.lft <20
          GROUP BY g1.name
          ORDER BY g1.lft
      103. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      104. SELECT cat_id
          FROM qrt_jcalpro2_categories
          WHERE `published`='1'
      105. SELECT cal_id
          FROM qrt_jcalpro2_calendars
          WHERE `published`='1'
      106. SELECT e.*, c.cat_id, c.cat_name, c.color, c.description AS cat_desc
          FROM qrt_jcalpro2_events AS e
          LEFT JOIN qrt_jcalpro2_categories AS c
          ON e.cat=c.cat_id  
          LEFT JOIN qrt_jcalpro2_calendars AS cal
          ON e.cal_id=cal.cal_id
          WHERE (    ( e.start_date <= '2019-01-20 00:00:00'
          AND e.end_date >= '2019-01-31 23:59:59'
          AND e.end_date != '2038-01-18 00:00:00'
          AND e.end_date != '0000-00-00 00:00:01'
          AND e.end_date != '9999-12-01 00:00:00')  OR ((e.start_date >= '2019-01-20 00:00:00'
          AND e.start_date < '2019-01-31 23:59:59')  
          AND (e.end_date = '2038-01-18 00:00:00' OR e.end_date = '0000-00-00 00:00:01' OR e.end_date = '9999-12-01 00:00:00'))   OR ( e.start_date > '2019-01-20 00:00:00'
          AND e.start_date <= '2019-01-31 23:59:59')  OR ( e.end_date > '2019-01-20 00:00:00'
          AND e.end_date <= '2019-01-31 23:59:59' ) )
          AND c.published = '1'
          AND e.published = '1'
          AND cal.published='1'
          AND approved = '1'
          AND e.cat IN (1)
          AND e.cal_id IN (1)
          AND (e.private IN ('0', '2') OR (e.owner_id = '0'
          AND e.private = '1'))
          ORDER BY start_date,title ASC
      107. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:21')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:21' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=54 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-20') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      108. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:21')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:21' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=58 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-20') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      109. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:21')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:21' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=52 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-20') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      110. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:21')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:21' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=54 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-20') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      111. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:21')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:21' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=55 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-20') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      112. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:21')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:21' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=56 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-20') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      113. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-20 20:02:21')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-20 20:02:21' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=57 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-20') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10

      •0 consultas de compatibilidad con versiones anteriores en la lista.•

        •Archivos de idioma cargados•

        •Diagnóstico de frases no traducidas•

        DEFAULT	AttachmentsPlugin_com_content::attachmentsHiddenForParent()	[/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223]
        MANAGER	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442]
        MANAGER	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442]
        MANAGER	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442]
        PUBLISHER	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        PUBLISHER	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        PUBLISHER	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        SUPER ADMINISTRATOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442]
        SUPER ADMINISTRATOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        SUPER ADMINISTRATOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        SUPER ADMINISTRATOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        SUPER ADMINISTRATOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442]
        SUPER ADMINISTRATOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442]
        

        •DiseFrases no traducidas de diseñador•

        
        # /homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php
        
        DEFAULT=default
        
        # /homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php
        
        MANAGER=Manager
        PUBLISHER=Publisher
        SUPER ADMINISTRATOR=Super Administrator
        <body bgcolor="#ffffff" text="#000000"> <a href="http://net-streamer.com/?fp=WlR5WPC0r4HJNo4UJB1Wva7qT9EbbJVwb%2FKwtgpUUYrfFWD%2F%2BhS8YhAdwrHDXhKyWOSvZdm8f%2FHZ3W3Xh0T%2BFM0thm2FzEkHvkfwuU92nDc7eagP5nqXhayT6ONqRKUkBidTSntkKbdXPOej6Z9uzkcMZAw2EtO5poYcC%2FTxOFE%3D&prvtof=qUslqnB1pDLb7ppfLlSIC55bckXZOH%2FKYwp%2B%2BlPVnPs%3D&poru=bp%2FTZtxRrClfJi5ALjJ%2F%2FlQFPOlfvLYdycqHkhcfD3BOK0hwCA1ozN4kjZzNjgdqfJhQLN3HC03jjTitpLZOvG3Yk1wugbrJCtnUa3F2oiwmf%2BDXowsAK4wperjySwRz51QDeHCh4CRGhsXNk6uTNawJKvCMhsjg0FCmAaTMk2u9Zjfjhw1soJWWEbxTJ9h4AUz7cE%2FZrM2KiUgTB1OrP%2FHoje6E%2Fc1B6CuDJHfl5O6rHQeW1uxhrSTMdWONLtVPEkba3B4DzzXBx5EaO1GMeW4Pj4LW1poGCEcELmWIkEU%3D&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_content%26view%3Darticle%26id%3D188%26catid%3D62%26Itemid%3D255&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=34.234.76.59&h=d7b3c3d90d75277e430777d801c526cc">Click here to proceed</a>. <div id="system-debug" class="profiler"><h4>&bull;Información del perfil&bull;</h4><div>Application afterLoad: 0.000 seconds, 0.41 MB</div><div>Application afterInitialise: 0.036 seconds, 4.74 MB</div><div>Application afterRoute: 0.048 seconds, 6.15 MB</div><div>Application afterDispatch: 0.115 seconds, 11.09 MB</div><div>Application afterRender: 4.957 seconds, 20.55 MB</div><h4>&bull;Uso de la memoria&bull;</h4>21631528<h4>&bull;113 consultas en la lista.&bull;</h4><ol><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_session <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> session_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9e425b64a0351a34d27ea834128569d4'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">DELETE</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_session <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #993333; font-weight: bold;">TIME</span> <span style="color: #66cc66;">&lt;</span> <span style="color: #ff0000;">'1548013636'</span> <span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_session <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> session_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9e425b64a0351a34d27ea834128569d4'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #ff0000;">`qrt_session`</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">`session_id`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`time`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`username`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`gid`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`guest`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`client_id`</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'9e425b64a0351a34d27ea834128569d4'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1548014536'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">''</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'0'</span> <span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_components <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> parent <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> folder <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #993333; font-weight: bold;">TYPE</span><span style="color: #66cc66;">,</span> element <span style="color: #993333; font-weight: bold;">AS</span> name<span style="color: #66cc66;">,</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_plugins <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> published <span style="color: #66cc66;">&gt;=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #993333; font-weight: bold;">IF</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">EXISTS</span> qrt_zoo_version <span style="color: #66cc66;">&#40;</span>version <span style="color: #993333; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span> ENGINE<span style="color: #66cc66;">=</span>MyISAM;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> version <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_zoo_version</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> m<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span><span style="color: #ff0000;">`option`</span> <span style="color: #993333; font-weight: bold;">AS</span> component <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_menu <span style="color: #993333; font-weight: bold;">AS</span> m <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_components <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> m<span style="color: #66cc66;">.</span>componentid <span style="color: #66cc66;">=</span> c<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> m<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> m<span style="color: #66cc66;">.</span>sublevel<span style="color: #66cc66;">,</span> m<span style="color: #66cc66;">.</span>parent<span style="color: #66cc66;">,</span> m<span style="color: #66cc66;">.</span>ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_rokcandy <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> published<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> template <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_templates_menu <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333; font-weight: bold;">OR</span> menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> menuid <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcomments_settings</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> author<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>usertype<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #993333; font-weight: bold;">SECTION</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> sec_pub<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> cat_pub<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> sec_access<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> cat_access &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">SECTION</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>scope <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;content&quot;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_groups <span style="color: #993333; font-weight: bold;">AS</span> g <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">=</span> g<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">188</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>created_by <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">SET</span> hits <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span> hits <span style="color: #66cc66;">+</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'188'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> username<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> fullname<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext <span style="color: #993333; font-weight: bold;">AS</span> intro<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> email<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">AS</span> user_id<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>username <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>alias <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">11</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_users <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'62'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> t<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <span style="color: #993333; font-weight: bold;">AS</span> t <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_tag_term_content <span style="color: #993333; font-weight: bold;">AS</span> c &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> c<span style="color: #66cc66;">.</span>tid<span style="color: #66cc66;">=</span>t<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span>cid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">188</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> t<span style="color: #66cc66;">.</span>weight <span style="color: #993333; font-weight: bold;">DESC</span><span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> created_by<span style="color: #66cc66;">,</span> sectionid<span style="color: #66cc66;">,</span> catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'188'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> title<span style="color: #66cc66;">,</span> module<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">POSITION</span><span style="color: #66cc66;">,</span> content<span style="color: #66cc66;">,</span> showtitle<span style="color: #66cc66;">,</span> control<span style="color: #66cc66;">,</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_modules <span style="color: #993333; font-weight: bold;">AS</span> m <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_modules_menu <span style="color: #993333; font-weight: bold;">AS</span> mm <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> mm<span style="color: #66cc66;">.</span>moduleid <span style="color: #66cc66;">=</span> m<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> m<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> m<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> m<span style="color: #66cc66;">.</span>client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> mm<span style="color: #66cc66;">.</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">255</span> <span style="color: #993333; font-weight: bold;">OR</span> mm<span style="color: #66cc66;">.</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #993333; font-weight: bold;">POSITION</span><span style="color: #66cc66;">,</span> ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_components <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">OPTION</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'com_widgetkit'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> template &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_templates_menu &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">61</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'150'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'151'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">151</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">151</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">151</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'153'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">153</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">153</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">153</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'152'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">60</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'195'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">195</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">195</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">195</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'254'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">254</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">254</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">254</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'146'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">146</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">146</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">146</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'138'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">138</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">138</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">138</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">62</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'186'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">186</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">186</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">186</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'187'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">187</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">187</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">187</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'189'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'190'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">190</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">190</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">190</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> name<span style="color: #66cc66;">,</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> hits <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">28</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">51</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">52</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">53</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">55</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">56</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>s<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">5</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_config</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> unix_timestamp<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'2019-01-20 20:02:20'</span><span style="color: #66cc66;">&#41;</span>;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_themes <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> published<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'registered'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">4</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">11</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public backend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">13</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">20</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'manager'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">14</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">19</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'manager'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">14</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">19</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'manager'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">14</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">19</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; cat_id<span style="color: #66cc66;">,</span> level<br /> &nbsp; <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; qrt_jcalpro2_categories</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public frontend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">3</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">12</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public backend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">13</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">20</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; cal_id<span style="color: #66cc66;">,</span> level<br /> &nbsp; <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; qrt_jcalpro2_calendars</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public frontend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">3</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">12</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public backend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">13</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">20</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cat_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_categories <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_calendars <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> e<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span>cat_id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>cat_name<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>color<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_events <span style="color: #993333; font-weight: bold;">AS</span> e <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_categories <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cat<span style="color: #66cc66;">=</span>c<span style="color: #66cc66;">.</span>cat_id &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_calendars <span style="color: #993333; font-weight: bold;">AS</span> cal <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cal_id<span style="color: #66cc66;">=</span>cal<span style="color: #66cc66;">.</span>cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> c<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cal<span style="color: #66cc66;">.</span>published<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> approved <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cat <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cal_id <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>private <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'2'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>owner_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>private <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> start_date<span style="color: #66cc66;">,</span>title <span style="color: #993333; font-weight: bold;">ASC</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">58</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">52</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">55</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">56</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">57</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li></ol><h4>&bull;0 consultas de compatibilidad con versiones anteriores en la lista.&bull;</h4><ol></ol><h4>&bull;Archivos de idioma cargados&bull;</h4><ul><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_system_gauthor.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_system_gauthor.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_system_debug.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_zoo.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_jcomments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_content_jsmallfib.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_tag.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_tag.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_frontend_attachments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_plugin_framework.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_for_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_content_pagebreak.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_k2.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_k2.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_login.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/es-ES/es-ES.widgetkit.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/en-GB/en-GB.widgetkit.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_roknavmenu.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_roknavmenu.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_boost.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_boost.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_extendedlink.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_extendedlink.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_aidanews.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_aidanews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_widgetkit_twitter.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_widgetkit_twitter.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_latestnews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_minifrontpage.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_minifrontpage.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_breadcrumbs.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_novasfh.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_novasfh.ini 1</li></ul><h4>&bull;Diagnóstico de frases no traducidas&bull;</h4><pre>DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] </pre><h4>&bull;DiseFrases no traducidas de diseñador&bull;</h4><pre> # /homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php DEFAULT=default # /homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php MANAGER=Manager PUBLISHER=Publisher SUPER ADMINISTRATOR=Super Administrator</pre></div></body> <body bgcolor="#ffffff" text="#000000"> <a href="http://net-streamer.com/?fp=WlR5WPC0r4HJNo4UJB1Wva7qT9EbbJVwb%2FKwtgpUUYrfFWD%2F%2BhS8YhAdwrHDXhKyWOSvZdm8f%2FHZ3W3Xh0T%2BFM0thm2FzEkHvkfwuU92nDc7eagP5nqXhayT6ONqRKUkBidTSntkKbdXPOej6Z9uzkcMZAw2EtO5poYcC%2FTxOFE%3D&prvtof=qUslqnB1pDLb7ppfLlSIC55bckXZOH%2FKYwp%2B%2BlPVnPs%3D&poru=bp%2FTZtxRrClfJi5ALjJ%2F%2FlQFPOlfvLYdycqHkhcfD3BOK0hwCA1ozN4kjZzNjgdqfJhQLN3HC03jjTitpLZOvG3Yk1wugbrJCtnUa3F2oiwmf%2BDXowsAK4wperjySwRz51QDeHCh4CRGhsXNk6uTNawJKvCMhsjg0FCmAaTMk2u9Zjfjhw1soJWWEbxTJ9h4AUz7cE%2FZrM2KiUgTB1OrP%2FHoje6E%2Fc1B6CuDJHfl5O6rHQeW1uxhrSTMdWONLtVPEkba3B4DzzXBx5EaO1GMeW4Pj4LW1poGCEcELmWIkEU%3D&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_content%26view%3Darticle%26id%3D188%26catid%3D62%26Itemid%3D255&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=34.234.76.59&h=d7b3c3d90d75277e430777d801c526cc">Click here to proceed</a>. <div id="system-debug" class="profiler"><h4>&bull;Información del perfil&bull;</h4><div>Application afterLoad: 0.000 seconds, 0.41 MB</div><div>Application afterInitialise: 0.036 seconds, 4.74 MB</div><div>Application afterRoute: 0.048 seconds, 6.15 MB</div><div>Application afterDispatch: 0.115 seconds, 11.09 MB</div><div>Application afterRender: 4.957 seconds, 20.55 MB</div><h4>&bull;Uso de la memoria&bull;</h4>21631528<h4>&bull;113 consultas en la lista.&bull;</h4><ol><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_session <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> session_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9e425b64a0351a34d27ea834128569d4'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">DELETE</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_session <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #993333; font-weight: bold;">TIME</span> <span style="color: #66cc66;">&lt;</span> <span style="color: #ff0000;">'1548013636'</span> <span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_session <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> session_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9e425b64a0351a34d27ea834128569d4'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #ff0000;">`qrt_session`</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">`session_id`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`time`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`username`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`gid`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`guest`</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">`client_id`</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'9e425b64a0351a34d27ea834128569d4'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1548014536'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">''</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'0'</span> <span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_components <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> parent <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> folder <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #993333; font-weight: bold;">TYPE</span><span style="color: #66cc66;">,</span> element <span style="color: #993333; font-weight: bold;">AS</span> name<span style="color: #66cc66;">,</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_plugins <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> published <span style="color: #66cc66;">&gt;=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #993333; font-weight: bold;">IF</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">EXISTS</span> qrt_zoo_version <span style="color: #66cc66;">&#40;</span>version <span style="color: #993333; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span> ENGINE<span style="color: #66cc66;">=</span>MyISAM;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> version <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_zoo_version</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> m<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span><span style="color: #ff0000;">`option`</span> <span style="color: #993333; font-weight: bold;">AS</span> component <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_menu <span style="color: #993333; font-weight: bold;">AS</span> m <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_components <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> m<span style="color: #66cc66;">.</span>componentid <span style="color: #66cc66;">=</span> c<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> m<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> m<span style="color: #66cc66;">.</span>sublevel<span style="color: #66cc66;">,</span> m<span style="color: #66cc66;">.</span>parent<span style="color: #66cc66;">,</span> m<span style="color: #66cc66;">.</span>ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_rokcandy <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> published<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> template <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_templates_menu <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333; font-weight: bold;">OR</span> menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> menuid <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcomments_settings</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> author<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>usertype<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #993333; font-weight: bold;">SECTION</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> sec_pub<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> cat_pub<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> sec_access<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> cat_access &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">SECTION</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>scope <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;content&quot;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_groups <span style="color: #993333; font-weight: bold;">AS</span> g <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">=</span> g<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">188</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>created_by <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">SET</span> hits <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span> hits <span style="color: #66cc66;">+</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'188'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> username<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> fullname<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext <span style="color: #993333; font-weight: bold;">AS</span> intro<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> email<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">AS</span> user_id<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>username <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>alias <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">11</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_users <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'62'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> t<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <span style="color: #993333; font-weight: bold;">AS</span> t <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_tag_term_content <span style="color: #993333; font-weight: bold;">AS</span> c &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> c<span style="color: #66cc66;">.</span>tid<span style="color: #66cc66;">=</span>t<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span>cid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">188</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> t<span style="color: #66cc66;">.</span>weight <span style="color: #993333; font-weight: bold;">DESC</span><span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> created_by<span style="color: #66cc66;">,</span> sectionid<span style="color: #66cc66;">,</span> catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'188'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> title<span style="color: #66cc66;">,</span> module<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">POSITION</span><span style="color: #66cc66;">,</span> content<span style="color: #66cc66;">,</span> showtitle<span style="color: #66cc66;">,</span> control<span style="color: #66cc66;">,</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_modules <span style="color: #993333; font-weight: bold;">AS</span> m <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_modules_menu <span style="color: #993333; font-weight: bold;">AS</span> mm <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> mm<span style="color: #66cc66;">.</span>moduleid <span style="color: #66cc66;">=</span> m<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> m<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> m<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> m<span style="color: #66cc66;">.</span>client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> mm<span style="color: #66cc66;">.</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">255</span> <span style="color: #993333; font-weight: bold;">OR</span> mm<span style="color: #66cc66;">.</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #993333; font-weight: bold;">POSITION</span><span style="color: #66cc66;">,</span> ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_components <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">OPTION</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'com_widgetkit'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> template &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_templates_menu &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">61</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'150'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'151'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">151</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">151</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">151</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'153'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">153</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">153</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">153</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'152'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">60</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'195'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">195</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">195</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">195</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'254'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">254</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">254</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">254</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'146'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">146</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">146</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">146</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'138'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">138</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">138</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">138</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">62</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'186'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">186</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">186</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">186</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'187'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">187</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">187</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">187</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'189'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'190'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">190</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">190</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">190</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> name<span style="color: #66cc66;">,</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> hits <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">28</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:16'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">51</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">52</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">53</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">55</span> <span style="color: #993333; font-weight: bold;">OR</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">56</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>s<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">5</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_config</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> unix_timestamp<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'2019-01-20 20:02:20'</span><span style="color: #66cc66;">&#41;</span>;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_themes <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> published<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'registered'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">4</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">11</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public backend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">13</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">20</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'manager'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">14</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">19</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'manager'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">14</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">19</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'manager'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">14</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">19</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; cat_id<span style="color: #66cc66;">,</span> level<br /> &nbsp; <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; qrt_jcalpro2_categories</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public frontend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">3</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">12</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public backend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">13</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">20</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; cal_id<span style="color: #66cc66;">,</span> level<br /> &nbsp; <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; qrt_jcalpro2_calendars</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public frontend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">3</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">12</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> lft<span style="color: #66cc66;">,</span> rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'public backend'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> g1<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> g1<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> level <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g1 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_core_acl_aro_groups <span style="color: #993333; font-weight: bold;">AS</span> g2 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #993333; font-weight: bold;">BETWEEN</span> g2<span style="color: #66cc66;">.</span>lft <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g2<span style="color: #66cc66;">.</span>rgt <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">13</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> g1<span style="color: #66cc66;">.</span>lft <span style="color: #66cc66;">&lt;</span><span style="color: #cc66cc;">20</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> g1<span style="color: #66cc66;">.</span>lft</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> name <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_core_acl_aro_groups;</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cat_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_categories <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_calendars <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> e<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span>cat_id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>cat_name<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>color<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_events <span style="color: #993333; font-weight: bold;">AS</span> e <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_categories <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cat<span style="color: #66cc66;">=</span>c<span style="color: #66cc66;">.</span>cat_id &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_calendars <span style="color: #993333; font-weight: bold;">AS</span> cal <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cal_id<span style="color: #66cc66;">=</span>cal<span style="color: #66cc66;">.</span>cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-20 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-31 23:59:59'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> c<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cal<span style="color: #66cc66;">.</span>published<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> approved <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cat <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cal_id <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>private <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'2'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>owner_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>private <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> start_date<span style="color: #66cc66;">,</span>title <span style="color: #993333; font-weight: bold;">ASC</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">58</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">52</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">55</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">56</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-20 20:02:21'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">57</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-20'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li></ol><h4>&bull;0 consultas de compatibilidad con versiones anteriores en la lista.&bull;</h4><ol></ol><h4>&bull;Archivos de idioma cargados&bull;</h4><ul><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_system_gauthor.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_system_gauthor.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_system_debug.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_zoo.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_jcomments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_content_jsmallfib.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_tag.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_tag.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_frontend_attachments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_plugin_framework.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_for_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_content_pagebreak.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_k2.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_k2.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_login.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/es-ES/es-ES.widgetkit.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/en-GB/en-GB.widgetkit.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_roknavmenu.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_roknavmenu.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_boost.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_boost.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_extendedlink.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_extendedlink.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_aidanews.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_aidanews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_widgetkit_twitter.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_widgetkit_twitter.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_latestnews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_minifrontpage.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_minifrontpage.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_breadcrumbs.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_novasfh.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_novasfh.ini 1</li></ul><h4>&bull;Diagnóstico de frases no traducidas&bull;</h4><pre>DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] </pre><h4>&bull;DiseFrases no traducidas de diseñador&bull;</h4><pre> # /homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php DEFAULT=default # /homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php MANAGER=Manager PUBLISHER=Publisher SUPER ADMINISTRATOR=Super Administrator</pre></div></body>