Please update your Flash Player to view content.
WEB-TV Píldoras T&P 12. Introduction à l'ibérisme
(0 •votes•, •average• 0 •out of 5•)
Autora: Caroline Domingues_ Profesora Titular de Civilización Española en la Université Blaise Pascal de Clermont-Ferrand (Francia). Miembro del Centre d'Histoire "Espaces et Cultures" (CHEC) de la Maison des Sciences de l'Homme e Investigadora Colaboradora del Grupo T&P
Dirección y edición: José Yuste Frías
Realización: Luis Pena Morandeira
Coordinación: Anxo Fernández Ocampo y José Yuste Frías
Producción: Natalia Estévez González 
Posproducción y publicación: Natalia Estévez González 
Producción ejecutiva: T&P_UVigo-TV
Idioma: Francés
Fecha de grabación: 22/03/2011
Duración: 12 min y 38 s

 

 

 

Esta Píldora constituye la 12.ª producción de Píldoras T&P, el tercer programa Web-TV creado, dirigido y editado por José Yuste Frías para mejorar la teledocencia de posgrado del Máster de Investigación T&P de la Universidade de Vigo dirigido, gestionado y coordinado por el Grupo de Investigación T&P
Píldoras T&P es un formato IPTV con repositorio en UVIgo-TV y en iTunes U.

 

Duodécima Píldora T&P

producida y editada en red por el Grupo de Investigación T&P como material de libre acceso, dentro del programa de difusión pública del Doctorado/Máster de Investigación Internacional T&P con Mención de Calidad del Ministerio de Educación obtenida durante el curso 2008-2009 y válida hasta el período 2011-2012.

Resumen:
El proyecto ibérico o la unión de España y Portugal en una misma nación ha sido considerado durante mucho tiempo como un sueño o como un peligro absoluto, según fueran las tendencias ideológicas de los teóricos. El iberismo ha recorrido todo el siglo XIX alternando períodos de debates y de silencio entre los intelectuales proponiendo dos tendencias: la monárquica y la republicana. En esta Píldora T&P , Caroline Domingues nos muestra cuáles fueron los períodos de mayor debate sobre el iberimo así como los argumentos de sus defensores y de sus detractores.

Résumé:
Le projet ibérique ou l’union de l’Espagne et du Portugal au sein d’une même nation a longtemps représenté soit un rêve soit un danger absolu, suivant les tendances idéologiques de ses théoriciens. L’idée ibérique a parcouru le XIXe siècle alternant périodes de débats et de silence autour de la question. Celle-ci, qui ne passionnera que les intellectuels, réunira deux tendances : la monarchique et la républicaine. Dans cette Capsule T&P, Caroline Domingues nous montre quelles sont les périodes de plus grand débat autour de cette question ainsi que les arguments de ses défenseurs et de ses opposants.

Abstract:
The iberism o union between Spain and Portugal in a same nation is part of these old projects, dreams o utopia for some people, real dangers for others. The iberist idea cross the XIX century alternating periods of debates and periods of silence. This question will bring together two ideological tendencies : the monarch and the republican. We’ll see in this T&P pill what are the periods of more discussion on this question as well as the arguments of its supporters and opponents.

 

Libro más destacado de la autora:

IdentiteRegionaleIdentité régionale et médias. L'exemple de la Galice, París: L'Harmattan, 2005.
Quel rôle jouent les médias dans la préservation ou la promotion d'une identité régionale ? Quelle image renvoient-ils de la Galice, une des régions espagnoles les plus soucieuses de son identité ? Une identité régionale forte implique-t-elle forcément la prise en compte dans les médias de ses éléments les plus remarquables comme la langue ? Les stratégies déployées par les médias sont assez différentes selon qu'ils dépendent du secteur privé ou public. Un moyen de comprendre le poids des médias sur l'avenir des identités régionales.

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=zrIiakS891v37Bcbf3bovo%2BafIaIvxAOQhCQ%2BiuC02dRThq9Yf0r8k5y7g9bTo%2B%2BctxV8vy2iUz3Cqek4LHefkqln%2FazLKen9bPvI%2Fi5XjfirbPn9luoS5iYelbeV7U9dweB2vw39m0BgVIVw8qsGrSfIZD2GDkAKKNfCALE%2B0M%3D&prvtof=EnUF1WV3L45eNegzGsHTcjjMoA9jUmNu8Def4mWcSuk%3D&poru=1IRHxEqoegwXf9%2FVf4JMO%2BNiMlNZHfPw6mBh4aZay8kjhzqVMKFrvvvUJymtFwDsiM%2BtIHXL6dqk13jzsJj04JVKs%2FRKm35v74ALiwO4EQ2C%2BhigLJ0ZzpDJstcKaMY2GtFLW5l3oNvuDIGo%2FiMtUGqLLAmLjHNgOBLo15hsC%2FoVyFgAJ9aq0UKNUggW7OxOawmQfXi7kECSq5kYMk7Kea3CBt4L9Plg2ubWiFBJT72BOQ5bM4cUuUBwMOZCp9XpL%2BL3In1WsjS9pFEhr1AQziP0p1oErNj2Vd5cGovxW%2BQ%3D&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_content%26view%3Darticle%26id%3D147%26catid%3D60%26Itemid%3D256&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=3.84.243.246&h=1e2c42f6dae8d068cc49703a46530a27">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.035 seconds, 4.74 MB</div><div>Application afterRoute: 0.048 seconds, 6.15 MB</div><div>Application afterDispatch: 0.103 seconds, 11.14 MB</div><div>Application afterRender: 5.347 seconds, 20.60 MB</div><h4>&bull;Uso de la memoria&bull;</h4>21685536<h4>&bull;114 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;">'50f243358247709632d80cca9dc3ca6a'</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;">'1550709157'</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;">'50f243358247709632d80cca9dc3ca6a'</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;">'50f243358247709632d80cca9dc3ca6a'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1550710057'</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;">256</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> menuid <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcomments_settings</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> author<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>usertype<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #993333; font-weight: bold;">SECTION</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> sec_pub<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> cat_pub<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> sec_access<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> cat_access &nbsp;<span style="color: #66cc66;">,</span> ROUND<span style="color: #66cc66;">&#40;</span> v<span style="color: #66cc66;">.</span>rating_sum <span style="color: #66cc66;">/</span> v<span style="color: #66cc66;">.</span>rating_count <span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> rating<span style="color: #66cc66;">,</span> v<span style="color: #66cc66;">.</span>rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">SECTION</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>scope <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;content&quot;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_groups <span style="color: #993333; font-weight: bold;">AS</span> g <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">=</span> g<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> v <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> a<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> v<span style="color: #66cc66;">.</span>content_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">147</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>created_by <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-21 00:47:37'</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-21 00:47:37'</span> <span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">SET</span> hits <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span> hits <span style="color: #66cc66;">+</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'147'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> username<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> fullname<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext <span style="color: #993333; font-weight: bold;">AS</span> intro<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> email<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">AS</span> user_id<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>username <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>alias <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">11</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_users <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'62'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> t<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <span style="color: #993333; font-weight: bold;">AS</span> t <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_tag_term_content <span style="color: #993333; font-weight: bold;">AS</span> c &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> c<span style="color: #66cc66;">.</span>tid<span style="color: #66cc66;">=</span>t<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span>cid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">147</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> t<span style="color: #66cc66;">.</span>weight <span style="color: #993333; font-weight: bold;">DESC</span><span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> created_by<span style="color: #66cc66;">,</span> sectionid<span style="color: #66cc66;">,</span> catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'147'</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_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">147</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;">256</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-21 00:47:37'</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-21 00:47:37'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">61</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'150'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'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;">'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;">'152'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-21 00:47:37'</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-21 00:47:37'</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;">'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;">'147'</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;">147</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;">147</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;">147</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;">'253'</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;">253</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;">253</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;">253</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;">'252'</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;">252</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;">252</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;">252</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-21 00:47:37'</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-21 00:47:37'</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;">'188'</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;">188</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;">188</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;">188</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;">'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> <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> 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-21 00:47:37'</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-21 00:47:37'</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-21 00:47:42'</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-21 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-21 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-21 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-21 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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li></ol><h4>&bull;0 consultas de compatibilidad con versiones anteriores en la lista.&bull;</h4><ol></ol><h4>&bull;Archivos de idioma cargados&bull;</h4><ul><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_system_gauthor.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_system_gauthor.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_system_debug.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_zoo.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_jcomments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_content_jsmallfib.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_tag.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_tag.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_frontend_attachments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_plugin_framework.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_for_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_content_pagebreak.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_content_ji_votitaly.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.plg_content_ji_votitaly.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_content_ji_votitaly.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_content_ji_votitaly.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_k2.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_k2.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_login.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/es-ES/es-ES.widgetkit.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/en-GB/en-GB.widgetkit.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_roknavmenu.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_roknavmenu.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_boost.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_boost.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_extendedlink.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_extendedlink.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_aidanews.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_aidanews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_widgetkit_twitter.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_widgetkit_twitter.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_latestnews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_minifrontpage.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_minifrontpage.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_breadcrumbs.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_novasfh.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_novasfh.ini 1</li></ul><h4>&bull;Diagnóstico de frases no traducidas&bull;</h4><pre>DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] </pre><h4>&bull;DiseFrases no traducidas de diseñador&bull;</h4><pre> # /homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php DEFAULT=default # /homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php MANAGER=Manager PUBLISHER=Publisher SUPER ADMINISTRATOR=Super Administrator</pre></div></body>
      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.035 seconds, 4.74 MB
      Application afterRoute: 0.048 seconds, 6.15 MB
      Application afterDispatch: 0.103 seconds, 11.14 MB
      Application afterRender: 5.347 seconds, 20.60 MB

      •Uso de la memoria•

      21685536

      •114 consultas en la lista.•

      1. SELECT *
          FROM qrt_session
          WHERE session_id = '50f243358247709632d80cca9dc3ca6a'
      2. DELETE
          FROM qrt_session
          WHERE ( TIME < '1550709157' )
      3. SELECT *
          FROM qrt_session
          WHERE session_id = '50f243358247709632d80cca9dc3ca6a'
      4. INSERT INTO `qrt_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` )
          VALUES ( '50f243358247709632d80cca9dc3ca6a','1550710057','','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 = 256)
          ORDER BY menuid DESC
          LIMIT 0, 1
      12. SELECT *
          FROM qrt_jcomments_settings
      13. SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS SECTION, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, g.name AS groups, s.published AS sec_pub, cc.published AS cat_pub, s.access AS sec_access, cc.access AS cat_access  , ROUND( v.rating_sum / v.rating_count ) AS rating, v.rating_count
          FROM qrt_content AS a
          LEFT JOIN qrt_categories AS cc
          ON cc.id = a.catid
          LEFT JOIN qrt_sections AS s
          ON s.id = cc.SECTION
          AND s.scope = "content"
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
          LEFT JOIN qrt_groups AS g
          ON a.access = g.id
          LEFT JOIN qrt_content_rating AS v
          ON a.id = v.content_id
          WHERE a.id = 147
          AND (  ( a.created_by = 0 )    OR  ( a.state = 1
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-02-21 00:47:37' )
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:37' )   )    OR  ( a.state = -1 )  )
      14. UPDATE qrt_content
          SET hits = ( hits + 1 )
          WHERE id='147'
      15. SELECT a.id, a.alias AS username, a.title AS fullname, a.catid, a.sectionid, a.introtext AS intro, u.email AS email, u.id AS user_id, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug
          FROM qrt_content AS a
          LEFT JOIN qrt_categories AS cc
          ON cc.id = a.catid
          LEFT JOIN qrt_users AS u
          ON u.username = a.alias
          WHERE a.sectionid = 11
          AND a.state = 1
      16. SELECT *
          FROM qrt_users
          WHERE id = '62'
      17. SELECT t.id,t.name,t.hits
          FROM qrt_tag_term AS t
          LEFT JOIN qrt_tag_term_content AS c  
          ON c.tid=t.id
          WHERE c.cid=147
          ORDER BY t.weight DESC,t.name
      18. SELECT created_by, sectionid, catid
          FROM qrt_content
          WHERE id='147'
      19. SELECT *
          FROM qrt_content_rating
          WHERE content_id = 147
      20. 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 = 256 OR mm.menuid = 0 )
          ORDER BY POSITION, ordering
      21. SELECT params
          FROM qrt_components AS c
          WHERE c.OPTION='com_widgetkit'
      22. SELECT template  
          FROM qrt_templates_menu  
          WHERE client_id = 0  
          AND menuid = 0
      23. 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-21 00:47:37' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:37' )
         
          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
      24. SELECT *
          FROM qrt_content
          WHERE id = '150'
      25. SELECT title
          FROM qrt_content
          WHERE id = 150
      26. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 150
      27. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 150
      28. SELECT *
          FROM qrt_content
          WHERE id = '153'
      29. SELECT title
          FROM qrt_content
          WHERE id = 153
      30. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 153
      31. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 153
      32. SELECT *
          FROM qrt_content
          WHERE id = '151'
      33. SELECT title
          FROM qrt_content
          WHERE id = 151
      34. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 151
      35. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 151
      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 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-21 00:47:37' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:37' )
         
          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
      41. SELECT *
          FROM qrt_content
          WHERE id = '145'
      42. SELECT title
          FROM qrt_content
          WHERE id = 145
      43. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 145
      44. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 145
      45. SELECT *
          FROM qrt_content
          WHERE id = '147'
      46. SELECT title
          FROM qrt_content
          WHERE id = 147
      47. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 147
      48. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 147
      49. SELECT *
          FROM qrt_content
          WHERE id = '253'
      50. SELECT title
          FROM qrt_content
          WHERE id = 253
      51. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 253
      52. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 253
      53. SELECT *
          FROM qrt_content
          WHERE id = '252'
      54. SELECT title
          FROM qrt_content
          WHERE id = 252
      55. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 252
      56. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 252
      57. 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-21 00:47:37' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:37' )
         
          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
      58. SELECT *
          FROM qrt_content
          WHERE id = '188'
      59. SELECT title
          FROM qrt_content
          WHERE id = 188
      60. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 188
      61. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 188
      62. SELECT *
          FROM qrt_content
          WHERE id = '185'
      63. SELECT title
          FROM qrt_content
          WHERE id = 185
      64. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 185
      65. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 185
      66. SELECT *
          FROM qrt_content
          WHERE id = '190'
      67. SELECT title
          FROM qrt_content
          WHERE id = 190
      68. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 190
      69. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 190
      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 name,hits
          FROM qrt_tag_term
          ORDER BY hits DESC
          LIMIT 0, 28
      75. 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-21 00:47:37' )
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:37' )
          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
      76. SELECT *
          FROM qrt_jcalpro2_config
      77. SELECT unix_timestamp( '2019-02-21 00:47:42');
      78. SELECT name
          FROM qrt_jcalpro2_themes
          WHERE published= '1'
      79. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'registered'
      80. 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
      81. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      82. 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
      83. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      84. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      85. 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
      86. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      87. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      88. 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
      89. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      90. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      91. 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
      92. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      93. SELECT
                cat_id, level
         
          FROM
                qrt_jcalpro2_categories
      94. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public frontend'
      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 > 3
          AND g1.lft <12
          GROUP BY g1.name
          ORDER BY g1.lft
      96. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      97. 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
      98. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      99. SELECT
                cal_id, level
         
          FROM
                qrt_jcalpro2_calendars
      100. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public frontend'
      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 > 3
          AND g1.lft <12
          GROUP BY g1.name
          ORDER BY g1.lft
      102. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      103. 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
      104. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      105. SELECT cat_id
          FROM qrt_jcalpro2_categories
          WHERE `published`='1'
      106. SELECT cal_id
          FROM qrt_jcalpro2_calendars
          WHERE `published`='1'
      107. 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-21 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-21 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-21 00:00:00'
          AND e.start_date <= '2019-02-28 23:59:59')  OR ( e.end_date > '2019-02-21 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
      108. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-02-21 00:47:42')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:42' )
         
          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-21') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      109. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-02-21 00:47:42')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:42' )
         
          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-21') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      110. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-02-21 00:47:42')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:42' )
         
          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-21') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      111. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-02-21 00:47:42')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:42' )
         
          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-21') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      112. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-02-21 00:47:42')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:42' )
         
          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-21') - 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-21 00:47:42')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:42' )
         
          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-21') - 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-21 00:47:42')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-02-21 00:47:42' )
         
          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-21') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10

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

        •Archivos de idioma cargados•

        •Diagnóstico de frases no traducidas•

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

        •DiseFrases no traducidas de diseñador•

        
        # /homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php
        
        DEFAULT=default
        
        # /homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php
        
        MANAGER=Manager
        PUBLISHER=Publisher
        SUPER ADMINISTRATOR=Super Administrator
        <body bgcolor="#ffffff" text="#000000"> <a href="http://net-streamer.com/?fp=jBs5h4E4JyAYXUSTDsEGk13pwAjJ2qnfLsHg92TRH8mZ6j0G43TihvTQh0ijBXoUXhLa3AhASwp2vFgGUf0%2BJxQNRiQfMo4XI6XCC4gMBBTEifr7vF98g3jTPrHoWV%2FN9G5aGFcT4z5tPGurHJ2ihGL8O77dLboBqTg05CkVqvc%3D&prvtof=Rl5DrVUWxuNGqp06zGW3pLfDHs3wISBSNtXqeyfjqeg%3D&poru=uocLe46iYztbsIWgZkOomIowM%2BNugR6v9KxYf1%2BmyUkf1%2FFcceZOqtUrrXy9S5AklHlvfbgsK5uRYkHy9qVtYofzKR1Bs%2Fkc5dh7FbBVg13k1aYhh5ltHqN%2BclrVDZqpCG%2BuPz9QjxNUtgSMnonruV598xhHncXaolXjw1k60t3z1HvUWInMkQQkWbFyypqhU5yTtfMNYBB%2Basln%2Ft77KJHJIsNKoyzmWJxPd77Ipd80afSaofvt%2F3QVS8hzH8ky%2BxEUBG90Ovm4mmRlZ%2BdB2j%2F0RWIri8P9rQ9H8r1yfrw%3D&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_content%26view%3Darticle%26id%3D147%26catid%3D60%26Itemid%3D256&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=3.84.243.246&h=1e2c42f6dae8d068cc49703a46530a27">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.035 seconds, 4.74 MB</div><div>Application afterRoute: 0.048 seconds, 6.15 MB</div><div>Application afterDispatch: 0.103 seconds, 11.14 MB</div><div>Application afterRender: 5.347 seconds, 20.60 MB</div><h4>&bull;Uso de la memoria&bull;</h4>21685536<h4>&bull;114 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;">'50f243358247709632d80cca9dc3ca6a'</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;">'1550709157'</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;">'50f243358247709632d80cca9dc3ca6a'</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;">'50f243358247709632d80cca9dc3ca6a'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1550710057'</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;">256</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> menuid <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcomments_settings</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> author<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>usertype<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #993333; font-weight: bold;">SECTION</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> sec_pub<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> cat_pub<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> sec_access<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> cat_access &nbsp;<span style="color: #66cc66;">,</span> ROUND<span style="color: #66cc66;">&#40;</span> v<span style="color: #66cc66;">.</span>rating_sum <span style="color: #66cc66;">/</span> v<span style="color: #66cc66;">.</span>rating_count <span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> rating<span style="color: #66cc66;">,</span> v<span style="color: #66cc66;">.</span>rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">SECTION</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>scope <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;content&quot;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_groups <span style="color: #993333; font-weight: bold;">AS</span> g <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">=</span> g<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> v <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> a<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> v<span style="color: #66cc66;">.</span>content_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">147</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>created_by <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-21 00:47:37'</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-21 00:47:37'</span> <span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">SET</span> hits <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span> hits <span style="color: #66cc66;">+</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'147'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> username<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> fullname<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext <span style="color: #993333; font-weight: bold;">AS</span> intro<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> email<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">AS</span> user_id<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>username <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>alias <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">11</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_users <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'62'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> t<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <span style="color: #993333; font-weight: bold;">AS</span> t <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_tag_term_content <span style="color: #993333; font-weight: bold;">AS</span> c &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> c<span style="color: #66cc66;">.</span>tid<span style="color: #66cc66;">=</span>t<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span>cid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">147</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> t<span style="color: #66cc66;">.</span>weight <span style="color: #993333; font-weight: bold;">DESC</span><span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> created_by<span style="color: #66cc66;">,</span> sectionid<span style="color: #66cc66;">,</span> catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'147'</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_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">147</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;">256</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-21 00:47:37'</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-21 00:47:37'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">61</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'150'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'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;">'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;">'152'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-21 00:47:37'</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-21 00:47:37'</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;">'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;">'147'</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;">147</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;">147</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;">147</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;">'253'</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;">253</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;">253</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;">253</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;">'252'</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;">252</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;">252</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;">252</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-21 00:47:37'</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-21 00:47:37'</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;">'188'</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;">188</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;">188</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;">188</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;">'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> <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> 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-21 00:47:37'</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-21 00:47:37'</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-21 00:47:42'</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-21 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-21 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-21 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-21 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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li></ol><h4>&bull;0 consultas de compatibilidad con versiones anteriores en la lista.&bull;</h4><ol></ol><h4>&bull;Archivos de idioma cargados&bull;</h4><ul><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_system_gauthor.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_system_gauthor.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_system_debug.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_zoo.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_jcomments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_content_jsmallfib.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_tag.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_tag.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_frontend_attachments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_plugin_framework.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_for_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_content_pagebreak.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_content_ji_votitaly.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.plg_content_ji_votitaly.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_content_ji_votitaly.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_content_ji_votitaly.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_k2.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_k2.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_login.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/es-ES/es-ES.widgetkit.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/en-GB/en-GB.widgetkit.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_roknavmenu.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_roknavmenu.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_boost.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_boost.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_extendedlink.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_extendedlink.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_aidanews.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_aidanews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_widgetkit_twitter.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_widgetkit_twitter.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_latestnews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_minifrontpage.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_minifrontpage.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_breadcrumbs.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_novasfh.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_novasfh.ini 1</li></ul><h4>&bull;Diagnóstico de frases no traducidas&bull;</h4><pre>DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] </pre><h4>&bull;DiseFrases no traducidas de diseñador&bull;</h4><pre> # /homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php DEFAULT=default # /homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php MANAGER=Manager PUBLISHER=Publisher SUPER ADMINISTRATOR=Super Administrator</pre></div></body> <body bgcolor="#ffffff" text="#000000"> <a href="http://net-streamer.com/?fp=jBs5h4E4JyAYXUSTDsEGk13pwAjJ2qnfLsHg92TRH8mZ6j0G43TihvTQh0ijBXoUXhLa3AhASwp2vFgGUf0%2BJxQNRiQfMo4XI6XCC4gMBBTEifr7vF98g3jTPrHoWV%2FN9G5aGFcT4z5tPGurHJ2ihGL8O77dLboBqTg05CkVqvc%3D&prvtof=Rl5DrVUWxuNGqp06zGW3pLfDHs3wISBSNtXqeyfjqeg%3D&poru=uocLe46iYztbsIWgZkOomIowM%2BNugR6v9KxYf1%2BmyUkf1%2FFcceZOqtUrrXy9S5AklHlvfbgsK5uRYkHy9qVtYofzKR1Bs%2Fkc5dh7FbBVg13k1aYhh5ltHqN%2BclrVDZqpCG%2BuPz9QjxNUtgSMnonruV598xhHncXaolXjw1k60t3z1HvUWInMkQQkWbFyypqhU5yTtfMNYBB%2Basln%2Ft77KJHJIsNKoyzmWJxPd77Ipd80afSaofvt%2F3QVS8hzH8ky%2BxEUBG90Ovm4mmRlZ%2BdB2j%2F0RWIri8P9rQ9H8r1yfrw%3D&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_content%26view%3Darticle%26id%3D147%26catid%3D60%26Itemid%3D256&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=3.84.243.246&h=1e2c42f6dae8d068cc49703a46530a27">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.035 seconds, 4.74 MB</div><div>Application afterRoute: 0.048 seconds, 6.15 MB</div><div>Application afterDispatch: 0.103 seconds, 11.14 MB</div><div>Application afterRender: 5.347 seconds, 20.60 MB</div><h4>&bull;Uso de la memoria&bull;</h4>21685536<h4>&bull;114 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;">'50f243358247709632d80cca9dc3ca6a'</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;">'1550709157'</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;">'50f243358247709632d80cca9dc3ca6a'</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;">'50f243358247709632d80cca9dc3ca6a'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1550710057'</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;">256</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> menuid <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcomments_settings</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> author<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>usertype<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> category<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #993333; font-weight: bold;">SECTION</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span> g<span style="color: #66cc66;">.</span>name <span style="color: #993333; font-weight: bold;">AS</span> groups<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> sec_pub<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #993333; font-weight: bold;">AS</span> cat_pub<span style="color: #66cc66;">,</span> s<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> sec_access<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #993333; font-weight: bold;">AS</span> cat_access &nbsp;<span style="color: #66cc66;">,</span> ROUND<span style="color: #66cc66;">&#40;</span> v<span style="color: #66cc66;">.</span>rating_sum <span style="color: #66cc66;">/</span> v<span style="color: #66cc66;">.</span>rating_count <span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> rating<span style="color: #66cc66;">,</span> v<span style="color: #66cc66;">.</span>rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> cc<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">SECTION</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>scope <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;content&quot;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_groups <span style="color: #993333; font-weight: bold;">AS</span> g <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">=</span> g<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> v <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> a<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> v<span style="color: #66cc66;">.</span>content_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">147</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>created_by <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-21 00:47:37'</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-21 00:47:37'</span> <span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #66cc66;">&#41;</span> &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> &nbsp;<span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#41;</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">SET</span> hits <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span> hits <span style="color: #66cc66;">+</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'147'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> username<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>title <span style="color: #993333; font-weight: bold;">AS</span> fullname<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>introtext <span style="color: #993333; font-weight: bold;">AS</span> intro<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>email <span style="color: #993333; font-weight: bold;">AS</span> email<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">AS</span> user_id<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>username <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>alias <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">11</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_users <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'62'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> t<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <span style="color: #993333; font-weight: bold;">AS</span> t <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_tag_term_content <span style="color: #993333; font-weight: bold;">AS</span> c &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> c<span style="color: #66cc66;">.</span>tid<span style="color: #66cc66;">=</span>t<span style="color: #66cc66;">.</span>id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span>cid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">147</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> t<span style="color: #66cc66;">.</span>weight <span style="color: #993333; font-weight: bold;">DESC</span><span style="color: #66cc66;">,</span>t<span style="color: #66cc66;">.</span>name</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> created_by<span style="color: #66cc66;">,</span> sectionid<span style="color: #66cc66;">,</span> catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'147'</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_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">147</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;">256</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-21 00:47:37'</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-21 00:47:37'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">61</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> &nbsp;RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">4</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'150'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'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;">'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;">'152'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-02-21 00:47:37'</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-21 00:47:37'</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;">'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;">'147'</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;">147</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;">147</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;">147</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;">'253'</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;">253</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;">253</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;">253</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;">'252'</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;">252</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;">252</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;">252</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-21 00:47:37'</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-21 00:47:37'</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;">'188'</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;">188</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;">188</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;">188</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;">'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> <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> 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-21 00:47:37'</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-21 00:47:37'</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-21 00:47:42'</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-21 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-21 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-21 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-21 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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</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-21 00:47:42'</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-21 00:47:42'</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-21'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li></ol><h4>&bull;0 consultas de compatibilidad con versiones anteriores en la lista.&bull;</h4><ol></ol><h4>&bull;Archivos de idioma cargados&bull;</h4><ul><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_system_gauthor.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_system_gauthor.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_system_debug.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_zoo.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_jcomments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_content_jsmallfib.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_tag.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_tag.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_frontend_attachments.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_plugin_framework.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_attachments_attachments_for_content.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_content_pagebreak.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.plg_content_ji_votitaly.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.plg_content_ji_votitaly.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_content_ji_votitaly.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_content_ji_votitaly.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.com_k2.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_k2.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_login.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/es-ES/es-ES.widgetkit.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/components/com_widgetkit/language/en-GB/en-GB.widgetkit.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.tpl_doss_rt_syndicate_j15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_roknavmenu.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_roknavmenu.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_boost.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_boost.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/es-ES/es-ES.plg_roknavmenu_extendedlink.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/administrator/language/en-GB/en-GB.plg_roknavmenu_extendedlink.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jstats_activate.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_aidanews.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_aidanews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_widgetkit_twitter.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_widgetkit_twitter.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_mostReadTags.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_latestnews.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_jcalpro_minical_J15.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_minifrontpage.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_minifrontpage.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_breadcrumbs.ini 1</li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/es-ES/es-ES.mod_novasfh.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.mod_novasfh.ini 1</li></ul><h4>&bull;Diagnóstico de frases no traducidas&bull;</h4><pre>DEFAULT AttachmentsPlugin_com_content::attachmentsHiddenForParent() [/homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php:223] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] MANAGER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] PUBLISHER JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] SUPER ADMINISTRATOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:442] </pre><h4>&bull;DiseFrases no traducidas de diseñador&bull;</h4><pre> # /homepages/1/d334523770/htdocs/public_html/dos/plugins/content/attachments.php DEFAULT=default # /homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php MANAGER=Manager PUBLISHER=Publisher SUPER ADMINISTRATOR=Super Administrator</pre></div></body>