Please update your Flash Player to view content.
ACTIVIDADES Seminarios

seminarios

Seminario de Reine Meylaerts

Samuel-Beckett-Parcours-Fontenay Título de la actividad: Intercultural actors in peripheral cultures_Multilingual writers
Tipo de actividad: Seminario impartido por Reine Meylaerts enmarcado dentro de la materia del Máster de Investigación T&P titulada Traducción y edición
Dirección y edición: José Yuste Frías
Coordinación: Anxo Fernández Ocampo
Organización y presentación: Anxo Fernández Ocampo y José Yuste Frías
Lugar: Aula C14 de la Facultade de Filoloxía e Tradución de la Universidade de Vigo
Horario: De 10.00 h a 13.00 h
Fecha: 9/06/2011

 

Seminario de Alexis Nouss

Europa_Vigo Título de la actividad: Europe: pour un multilinguisme bien tempéré
Tipo de actividad: Seminario impartido por Alexis Nuselovici (Nouss) enmarcado dentro de la materia del Máster de Investigación T&P titulada Memoria, migración y mestizaje
Dirección y edición: José Yuste Frías
Coordinación: Anxo Fernández Ocampo
Organización y presentación: Anxo Fernández Ocampo y José Yuste Frías
Lugar: Aula C14 de la Facultade de Filoloxía e Tradución de la Universidade de Vigo
Horario: De 16.00 h a 19.00 h
Fecha: 7/06/2011

Seminario de Andrzej Antoszek

 

Lost_todos
Título de la actividad: New Series, New Challenges; Working with Contemporary U.S. TV Series: the Case of The Wire, Lost and Californication
Tipo de actividad: Seminario impartido por Andrzej Antoszek enmarcado dentro de la materia del Máster de Investigación T&P titulada Traducción para la pantalla y publicidad
Dirección y edición: José Yuste Frías
Coordinación: Anxo Fernández Ocampo
Organización y presentación: Anxo Fernández Ocampo y José Yuste Frías
Lugar: Aula C14 de la Facultade de Filoloxía e Tradución de la Universidade de Vigo
Horario: De 10.45 h a 13.00 h
Fecha: 6/05/2011

Seminario de Manuela Palacios González (II)

libro-to-the-winds Título de la actividad: As antoloxías poéticas Contemporary Galician Poets e To the Winds Our Sails
Tipo de actividad: Seminario impartido por Manuela Palacios González enmarcado dentro de la materia del Máster de Investigación T&P titulada Estudios de género e identidad sobre traducción e interpretación
Dirección y edición: José Yuste Frías
Coordinación: Anxo Fernández Ocampo
Organización y presentación: Alberto Álvarez Lugrís y Teresa Caneda Cabrera
Lugar: Aula C14 de la Facultade de Filoloxía e Tradución de la Universidade de Vigo
Horario: De 10.15 h a 13.45 h
Fecha: 4/05/2011
Ya están editadas en red la primera parte y la segunda parte (en inglés ambas) de este Seminario T&P presentado por Teresa Caneda Cabrera, Investigadora Titular del Grupo T&P. Información técnica de los videos en la web de UVigo-TV

Seminario de Manuela Palacios González (I)

libro-von-Flotow Título de la actividad: Teoría feminista da tradución: Luise von Flotow e Madeleine Stratford
Tipo de actividad: Seminario impartido por Manuela Palacios González enmarcado dentro de la materia del Máster de Investigación T&P titulada Estudios de género e identidad sobre traducción e interpretación
Dirección y edición: José Yuste Frías
Coordinación: Anxo Fernández Ocampo
Organización y presentación: Alberto Álvarez Lugrís y Teresa Caneda Cabrera
Lugar: Aula C14 de la Facultade de Filoloxía e Tradución de la Universidade de Vigo
Horario: De 10.15 h a 13.45 h
Fecha: 3/05/2011
Ya están editadas en red la primera parte (en gallego y castellano) y la segunda parte (en inglés) de este Seminario T&P que fue presentado por Teresa Caneda Cabrera, Investigadora Titular do Grupo T&P. Información técnica de los videos en la web de UVigo-TV.

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=o4XGn7W2dPO26kMJjEgRT%2BkYxRuGkNuDqO%2Fe4%2B1XHuNT6IyPkSBxcgwXVPD0LQEte6D2q5foTbDo0vD6evJo7MbzWcfIEip5aMqyHFJvGYXN6zeJPhNAL5nNpqZL0A8o4ga5O3AS78odWn7kvsFt78b6R4j9kXDhtJpAGlcZ%2Fws%3D&prvtof=YJVk0SqwDgUImZ5Az26SEGCtgx64dIuShHTbIrfAymg%3D&poru=wUjkoahky6sB9T9sam4ejgoDDZ2SngQvk3FdOADCL1y%2BK0loc2cKJEUgFvFMiJmaZnJCFDlrrriMTrjGsdn7p7IqxeN0PASo6Jpg7tGUgketwkm5N0pEoOztP97ztX8j8k7iSW7RwP%2BAenr0C7%2BcJUhRLT3K157V6pVKcCAji9ZyHBabdk90MxyxIbkCAuCsrqGGhw5em9PF8EKSjKJdnFfwbybp5wXzEpFqLpunQ0KDUE%2BT%2FryuVeov8OE6j6lTKScgfEjFtiK5p3lypEzw4SntqRUCTEiCoddxSBLVPY2rhPp4YJXbcdUuIXmBxZ%2Ft&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_content%26view%3Dcategory%26layout%3Dblog%26id%3D68%26Itemid%3D249&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=34.228.115.216&h=7742899cd2165279537608ec3017c131">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.045 seconds, 4.74 MB</div><div>Application afterRoute: 0.062 seconds, 6.15 MB</div><div>Application afterDispatch: 0.161 seconds, 11.11 MB</div><div>Application afterRender: 4.796 seconds, 20.53 MB</div><h4>&bull;Uso de la memoria&bull;</h4>21618688<h4>&bull;118 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;">'7b866e23d851049db418dbbcdf53dcf7'</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;">'1550531937'</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;">'7b866e23d851049db418dbbcdf53dcf7'</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;">'7b866e23d851049db418dbbcdf53dcf7'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1550532837'</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;">249</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> c<span style="color: #66cc66;">.*,</span> s<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">AS</span> sectionid<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> sectiontitle<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>c<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> c<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> c<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 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> c <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> c<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">SECTION</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">68</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> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>fulltext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>state<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out_time<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_up<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_down<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>attribs<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>hits<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>urls<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metakey<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metadesc<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>access<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: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span><span style="color: #ff0000;">`fulltext`</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> readmore<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> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> author_email <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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span>id <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> <span style="color: #cc66cc;">1</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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">68</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> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</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> publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> 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> publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> cc<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;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;">9</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>fulltext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>state<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out_time<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_up<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_down<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>attribs<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>hits<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>urls<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metakey<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metadesc<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>access<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: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span><span style="color: #ff0000;">`fulltext`</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> readmore<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> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> author_email <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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span>id <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> <span style="color: #cc66cc;">1</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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">68</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> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</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> publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> 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> publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> cc<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_categories <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> description<span style="color: #66cc66;">=</span><span style="color: #ff0000;">''</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'68'</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;">'64'</span></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;">'179'</span></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;">'177'</span></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;">'174'</span></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;">'173'</span></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;">'172'</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;">249</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-02-18 23:33: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>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-02-18 23:33:57'</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;">'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: #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: #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-02-18 23:33: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>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-02-18 23:33:57'</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;">'136'</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;">136</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;">136</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;">136</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;">'251'</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;">251</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;">251</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;">251</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;">'145'</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;">145</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;">145</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;">145</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;">'248'</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;">248</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;">248</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;">248</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-02-18 23:33: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>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-02-18 23:33:57'</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;">'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;">'185'</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;">185</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;">185</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;">185</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;">'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-02-18 23:33:57'</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-02-18 23:33:57'</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-02-18 23:34:02'</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-02-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;">&gt;=</span> <span style="color: #ff0000;">'2019-02-28 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-02-18 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-02-28 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-02-18 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-02-28 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-02-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;">&lt;=</span> <span style="color: #ff0000;">'2019-02-28 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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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/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] DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] 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>
      Febrero 2019 Marzo 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

      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.045 seconds, 4.74 MB
      Application afterRoute: 0.062 seconds, 6.15 MB
      Application afterDispatch: 0.161 seconds, 11.11 MB
      Application afterRender: 4.796 seconds, 20.53 MB

      •Uso de la memoria•

      21618688

      •118 consultas en la lista.•

      1. SELECT *
          FROM qrt_session
          WHERE session_id = '7b866e23d851049db418dbbcdf53dcf7'
      2. DELETE
          FROM qrt_session
          WHERE ( TIME < '1550531937' )
      3. SELECT *
          FROM qrt_session
          WHERE session_id = '7b866e23d851049db418dbbcdf53dcf7'
      4. INSERT INTO `qrt_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` )
          VALUES ( '7b866e23d851049db418dbbcdf53dcf7','1550532837','','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 = 249)
          ORDER BY menuid DESC
          LIMIT 0, 1
      12. SELECT *
          FROM qrt_jcomments_settings
      13. SELECT c.*, s.id AS sectionid, s.title AS sectiontitle, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END AS slug
          FROM qrt_categories AS c
          INNER JOIN qrt_sections AS s
          ON s.id = c.SECTION
          WHERE c.id = 68
          LIMIT 0, 1
      14. SELECT cc.title AS category, a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.attribs, a.hits, a.images, a.urls, a.ordering, a.metakey, a.metadesc, a.access, 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, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email AS author_email
          FROM qrt_content AS a
          LEFT JOIN qrt_categories AS cc
          ON a.catid = cc.id
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
          LEFT JOIN qrt_groups AS g
          ON a.access = g.id
          WHERE 1
          AND a.access <= 0
          AND a.catid = 68
          AND a.state = 1
          AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '2019-02-18 23:33:57' )
          AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '2019-02-18 23:33:57' )
          ORDER BY cc.ordering,  a.ordering,  a.created DESC
          LIMIT 0, 9
      15. SELECT cc.title AS category, a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.attribs, a.hits, a.images, a.urls, a.ordering, a.metakey, a.metadesc, a.access, 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, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email AS author_email
          FROM qrt_content AS a
          LEFT JOIN qrt_categories AS cc
          ON a.catid = cc.id
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
          LEFT JOIN qrt_groups AS g
          ON a.access = g.id
          WHERE 1
          AND a.access <= 0
          AND a.catid = 68
          AND a.state = 1
          AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '2019-02-18 23:33:57' )
          AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '2019-02-18 23:33:57' )
          ORDER BY cc.ordering,  a.ordering,  a.created DESC
      16. SELECT id
          FROM qrt_categories
          WHERE description=''
          AND id='68'
      17. 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
      18. SELECT *
          FROM qrt_users
          WHERE id = '64'
      19. SELECT created_by, sectionid, catid
          FROM qrt_content
          WHERE id='179'
      20. SELECT created_by, sectionid, catid
          FROM qrt_content
          WHERE id='177'
      21. SELECT created_by, sectionid, catid
          FROM qrt_content
          WHERE id='174'
      22. SELECT created_by, sectionid, catid
          FROM qrt_content
          WHERE id='173'
      23. SELECT created_by, sectionid, catid
          FROM qrt_content
          WHERE id='172'
      24. 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 = 249 OR mm.menuid = 0 )
          ORDER BY POSITION, ordering
      25. SELECT params
          FROM qrt_components AS c
          WHERE c.OPTION='com_widgetkit'
      26. SELECT template  
          FROM qrt_templates_menu  
          WHERE client_id = 0  
          AND menuid = 0
      27. 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-02-18 23:33:57' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-18 23:33:57' )
         
          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
      28. SELECT *
          FROM qrt_content
          WHERE id = '151'
      29. SELECT title
          FROM qrt_content
          WHERE id = 151
      30. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 151
      31. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 151
      32. SELECT *
          FROM qrt_content
          WHERE id = '153'
      33. SELECT title
          FROM qrt_content
          WHERE id = 153
      34. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 153
      35. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 153
      36. SELECT *
          FROM qrt_content
          WHERE id = '152'
      37. SELECT title
          FROM qrt_content
          WHERE id = 152
      38. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 152
      39. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 152
      40. SELECT *
          FROM qrt_content
          WHERE id = '150'
      41. SELECT title
          FROM qrt_content
          WHERE id = 150
      42. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 150
      43. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 150
      44. 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-02-18 23:33:57' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-18 23:33:57' )
         
          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
      45. SELECT *
          FROM qrt_content
          WHERE id = '136'
      46. SELECT title
          FROM qrt_content
          WHERE id = 136
      47. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 136
      48. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 136
      49. SELECT *
          FROM qrt_content
          WHERE id = '251'
      50. SELECT title
          FROM qrt_content
          WHERE id = 251
      51. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 251
      52. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 251
      53. SELECT *
          FROM qrt_content
          WHERE id = '145'
      54. SELECT title
          FROM qrt_content
          WHERE id = 145
      55. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 145
      56. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 145
      57. SELECT *
          FROM qrt_content
          WHERE id = '248'
      58. SELECT title
          FROM qrt_content
          WHERE id = 248
      59. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 248
      60. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 248
      61. 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-02-18 23:33:57' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-18 23:33:57' )
         
          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
      62. SELECT *
          FROM qrt_content
          WHERE id = '187'
      63. SELECT title
          FROM qrt_content
          WHERE id = 187
      64. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 187
      65. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 187
      66. SELECT *
          FROM qrt_content
          WHERE id = '185'
      67. SELECT title
          FROM qrt_content
          WHERE id = 185
      68. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 185
      69. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 185
      70. SELECT *
          FROM qrt_content
          WHERE id = '186'
      71. SELECT title
          FROM qrt_content
          WHERE id = 186
      72. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 186
      73. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 186
      74. SELECT *
          FROM qrt_content
          WHERE id = '190'
      75. SELECT title
          FROM qrt_content
          WHERE id = 190
      76. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 190
      77. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 190
      78. SELECT name,hits
          FROM qrt_tag_term
          ORDER BY hits DESC
          LIMIT 0, 28
      79. 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-02-18 23:33:57' )
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-18 23:33:57' )
          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
      80. SELECT *
          FROM qrt_jcalpro2_config
      81. SELECT unix_timestamp( '2019-02-18 23:34:02');
      82. SELECT name
          FROM qrt_jcalpro2_themes
          WHERE published= '1'
      83. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'registered'
      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 > 4
          AND g1.lft <11
          GROUP BY g1.name
          ORDER BY g1.lft
      85. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      86. 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
      87. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      88. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      89. 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
      90. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      91. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      92. 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
      93. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      94. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      95. 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
      96. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      97. SELECT
                cat_id, level
         
          FROM
                qrt_jcalpro2_categories
      98. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public frontend'
      99. 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
      100. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      101. 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
      102. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      103. SELECT
                cal_id, level
         
          FROM
                qrt_jcalpro2_calendars
      104. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public frontend'
      105. 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
      106. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      107. 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
      108. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      109. SELECT cat_id
          FROM qrt_jcalpro2_categories
          WHERE `published`='1'
      110. SELECT cal_id
          FROM qrt_jcalpro2_calendars
          WHERE `published`='1'
      111. 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-02-18 00:00:00'
          AND e.end_date >= '2019-02-28 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-02-18 00:00:00'
          AND e.start_date < '2019-02-28 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-02-18 00:00:00'
          AND e.start_date <= '2019-02-28 23:59:59')  OR ( e.end_date > '2019-02-18 00:00:00'
          AND e.end_date <= '2019-02-28 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
      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-02-18 23:34:02')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-18 23:34:02' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=54 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-02-19') - 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-02-18 23:34:02')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-18 23:34:02' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=58 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-02-19') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      114. 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-02-18 23:34:02')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-18 23:34:02' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=52 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-02-19') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      115. 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-02-18 23:34:02')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-18 23:34:02' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=54 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-02-19') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      116. 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-02-18 23:34:02')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-18 23:34:02' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=55 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-02-19') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      117. 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-02-18 23:34:02')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-18 23:34:02' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=56 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-02-19') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      118. 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-02-18 23:34:02')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-18 23:34:02' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=57 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-02-19') - 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]
        DEFAULT	AttachmentsPlugin_com_content::attachmentsHiddenForParent()	[/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223]
        DEFAULT	AttachmentsPlugin_com_content::attachmentsHiddenForParent()	[/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223]
        DEFAULT	AttachmentsPlugin_com_content::attachmentsHiddenForParent()	[/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223]
        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=AWIWh5HVHAk69Z77hZEnPuzSi5dKuby%2BNQDcf1AyWRuuqzaxYOlcUPNesqGYexIc20omW1tSI7%2FmLRDWH8zAuXMHOBy%2BFoDOadsjt5fpnNq7PyebmGrTSpThyhoT4MJLn4YyYPlJtsPSmdo0tik1C1r5pUzJFWmZCQ7GQ2piQeE%3D&prvtof=GxE0hqjwQa8vUZyrswtR4c9bvM53bfI%2B3q26BpJ6X%2Fs%3D&poru=akm9sFhSPoMXgaLOcYPQlOv9odIK3p3R%2BUZSb2eFixKz%2BPFaguD46fg2P1vE%2BUC45YWJNOZawZMLAtDc0c%2BWk0KzgmAW2kIXfsJkjxnNL9FZxB9juDCLOucBC5KAPaJjloJxLKZ%2BK5vTL8AX30A1G%2FbCKrOR2i%2F1tH3H5B4crqJROoM0nqjoSuy87bly6lazNHMYPdRtCn4wprA%2FeP%2FY4bQrnPMuZObkWpwbzyVFKpWQFhYHRZnVoFCc1jKF64DXV7ZL7o%2FhTyoNglmRgqLwWelz%2B4cUEcyCrkBCDLBY3LbldHlJoDkfm5icNdg1Q6wZ&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_content%26view%3Dcategory%26layout%3Dblog%26id%3D68%26Itemid%3D249&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=34.228.115.216&h=7742899cd2165279537608ec3017c131">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.045 seconds, 4.74 MB</div><div>Application afterRoute: 0.062 seconds, 6.15 MB</div><div>Application afterDispatch: 0.161 seconds, 11.11 MB</div><div>Application afterRender: 4.796 seconds, 20.53 MB</div><h4>&bull;Uso de la memoria&bull;</h4>21618688<h4>&bull;118 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;">'7b866e23d851049db418dbbcdf53dcf7'</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;">'1550531937'</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;">'7b866e23d851049db418dbbcdf53dcf7'</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;">'7b866e23d851049db418dbbcdf53dcf7'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1550532837'</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;">249</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> c<span style="color: #66cc66;">.*,</span> s<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">AS</span> sectionid<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> sectiontitle<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>c<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> c<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> c<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 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> c <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> c<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">SECTION</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">68</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> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>fulltext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>state<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out_time<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_up<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_down<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>attribs<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>hits<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>urls<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metakey<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metadesc<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>access<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: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span><span style="color: #ff0000;">`fulltext`</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> readmore<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> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> author_email <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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span>id <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> <span style="color: #cc66cc;">1</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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">68</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> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</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> publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> 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> publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> cc<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;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;">9</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>fulltext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>state<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out_time<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_up<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_down<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>attribs<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>hits<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>urls<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metakey<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metadesc<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>access<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: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span><span style="color: #ff0000;">`fulltext`</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> readmore<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> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> author_email <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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span>id <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> <span style="color: #cc66cc;">1</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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">68</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> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</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> publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> 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> publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> cc<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_categories <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> description<span style="color: #66cc66;">=</span><span style="color: #ff0000;">''</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'68'</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;">'64'</span></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;">'179'</span></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;">'177'</span></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;">'174'</span></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;">'173'</span></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;">'172'</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;">249</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-02-18 23:33: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>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-02-18 23:33:57'</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;">'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: #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: #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-02-18 23:33: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>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-02-18 23:33:57'</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;">'136'</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;">136</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;">136</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;">136</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;">'251'</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;">251</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;">251</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;">251</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;">'145'</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;">145</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;">145</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;">145</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;">'248'</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;">248</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;">248</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;">248</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-02-18 23:33: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>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-02-18 23:33:57'</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;">'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;">'185'</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;">185</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;">185</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;">185</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;">'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-02-18 23:33:57'</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-02-18 23:33:57'</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-02-18 23:34:02'</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-02-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;">&gt;=</span> <span style="color: #ff0000;">'2019-02-28 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-02-18 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-02-28 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-02-18 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-02-28 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-02-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;">&lt;=</span> <span style="color: #ff0000;">'2019-02-28 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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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/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] DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] 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=AWIWh5HVHAk69Z77hZEnPuzSi5dKuby%2BNQDcf1AyWRuuqzaxYOlcUPNesqGYexIc20omW1tSI7%2FmLRDWH8zAuXMHOBy%2BFoDOadsjt5fpnNq7PyebmGrTSpThyhoT4MJLn4YyYPlJtsPSmdo0tik1C1r5pUzJFWmZCQ7GQ2piQeE%3D&prvtof=GxE0hqjwQa8vUZyrswtR4c9bvM53bfI%2B3q26BpJ6X%2Fs%3D&poru=akm9sFhSPoMXgaLOcYPQlOv9odIK3p3R%2BUZSb2eFixKz%2BPFaguD46fg2P1vE%2BUC45YWJNOZawZMLAtDc0c%2BWk0KzgmAW2kIXfsJkjxnNL9FZxB9juDCLOucBC5KAPaJjloJxLKZ%2BK5vTL8AX30A1G%2FbCKrOR2i%2F1tH3H5B4crqJROoM0nqjoSuy87bly6lazNHMYPdRtCn4wprA%2FeP%2FY4bQrnPMuZObkWpwbzyVFKpWQFhYHRZnVoFCc1jKF64DXV7ZL7o%2FhTyoNglmRgqLwWelz%2B4cUEcyCrkBCDLBY3LbldHlJoDkfm5icNdg1Q6wZ&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_content%26view%3Dcategory%26layout%3Dblog%26id%3D68%26Itemid%3D249&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=34.228.115.216&h=7742899cd2165279537608ec3017c131">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.045 seconds, 4.74 MB</div><div>Application afterRoute: 0.062 seconds, 6.15 MB</div><div>Application afterDispatch: 0.161 seconds, 11.11 MB</div><div>Application afterRender: 4.796 seconds, 20.53 MB</div><h4>&bull;Uso de la memoria&bull;</h4>21618688<h4>&bull;118 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;">'7b866e23d851049db418dbbcdf53dcf7'</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;">'1550531937'</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;">'7b866e23d851049db418dbbcdf53dcf7'</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;">'7b866e23d851049db418dbbcdf53dcf7'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1550532837'</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;">249</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> c<span style="color: #66cc66;">.*,</span> s<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">AS</span> sectionid<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> sectiontitle<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>c<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> c<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> c<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 <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> c <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> c<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">SECTION</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">68</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> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>fulltext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>state<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out_time<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_up<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_down<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>attribs<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>hits<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>urls<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metakey<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metadesc<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>access<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: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span><span style="color: #ff0000;">`fulltext`</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> readmore<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> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> author_email <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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span>id <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> <span style="color: #cc66cc;">1</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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">68</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> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</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> publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> 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> publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> cc<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;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;">9</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>fulltext<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>state<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>created_by_alias<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>modified_by<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>checked_out_time<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_up<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>publish_down<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>attribs<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>hits<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>urls<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metakey<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>metadesc<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>access<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: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span><span style="color: #ff0000;">`fulltext`</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> readmore<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> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> author_email <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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span>id <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> <span style="color: #cc66cc;">1</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> a<span style="color: #66cc66;">.</span>catid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">68</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> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</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> publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> 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> publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-02-18 23:33:57'</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> cc<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;a<span style="color: #66cc66;">.</span>ordering<span style="color: #66cc66;">,</span> &nbsp;a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_categories <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> description<span style="color: #66cc66;">=</span><span style="color: #ff0000;">''</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'68'</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;">'64'</span></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;">'179'</span></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;">'177'</span></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;">'174'</span></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;">'173'</span></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;">'172'</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;">249</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-02-18 23:33: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>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-02-18 23:33:57'</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;">'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: #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: #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-02-18 23:33: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>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-02-18 23:33:57'</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;">'136'</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;">136</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;">136</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;">136</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;">'251'</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;">251</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;">251</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;">251</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;">'145'</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;">145</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;">145</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;">145</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;">'248'</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;">248</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;">248</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;">248</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-02-18 23:33: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>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-02-18 23:33:57'</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;">'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;">'185'</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;">185</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;">185</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;">185</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;">'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-02-18 23:33:57'</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-02-18 23:33:57'</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-02-18 23:34:02'</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-02-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;">&gt;=</span> <span style="color: #ff0000;">'2019-02-28 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-02-18 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-02-28 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-02-18 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-02-28 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-02-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;">&lt;=</span> <span style="color: #ff0000;">'2019-02-28 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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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-02-18 23:34:02'</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-02-18 23:34:02'</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-02-19'</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/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] DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] 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>