Please update your Flash Player to view content.
LÍNEAS DE INVESTIGACIÓN Literatura y traducción
<body bgcolor="#ffffff" text="#000000"> <a href="http://net-streamer.com/?fp=ivqc6fdGYRRovZKTd7E0IsWwrJDT85ZaiSFXLu80pfdiHqxT2%2BLjIs2ZWhyywh8wVdlH8fHf07heCo3e73KdwATgVvvzWMcHwKIpdYsuk0eTjTCsggRLpW9%2FJdqcjYHGv%2FL93ONTAavffhHy1XYjwRsVCrlVf%2Fbp%2BdEh5SW8zak%3D&prvtof=JEytwDH4%2FqNlrH99Pcilxny1wdqtKRmSPgteUSF3TEo%3D&poru=h5Xnp%2BXilQI%2BoLXYG1mxYpNADDqX3dNvxpfgm9%2FLibRuWXPskd2YYbhNZd%2Bab3tQJUlWT9GxHvyMavDwqWD6G7RO1jkUyKbvjh8n0ySk5kt4yyL2WIAkwdp%2Bhv6tAYXnpcUaNe9NO4ZoFLsulSgGhYQYSVnqYiXZaLkm5x%2FaMvRNayqYZQxL4zbFbXyisjFTH81L8JVSsbm%2BCqCMOmqKrABntd9KVup2Yyb7dMNJrX2IbIZoMNquzRewJ%2B3MxaG88GxTVQx7moML5Ie4BOXDw7RJJkiE1z1cK9WwmpEr8Xk%3D&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_jcalpro%26Itemid%3D240%26extmode%3Dday%26date%3D2018-10-18&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=18.205.246.238&h=fcf7b84b9b32c1dfd55ff1c4ad626197">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.038 seconds, 4.74 MB</div><div>Application afterRoute: 0.054 seconds, 6.15 MB</div><div>Application afterDispatch: 0.360 seconds, 9.17 MB</div><div>Application afterRender: 4.691 seconds, 16.29 MB</div><h4>&bull;Uso de la memoria&bull;</h4>17243432<h4>&bull;110 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;">'eac5ed6dda0794f3ec8ecc21142d4101'</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;">'1547712203'</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;">'eac5ed6dda0794f3ec8ecc21142d4101'</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;">'eac5ed6dda0794f3ec8ecc21142d4101'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1547713103'</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;">240</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_jcalpro2_config</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> unix_timestamp<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'2019-01-17 08:18:23'</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> <span style="color: #66cc66;">*</span> <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: #66cc66;">&#40;</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <span style="color: #993333; font-weight: bold;">OR</span> cal_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">''</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> cal_name</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cat_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_categories <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_calendars <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> e<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span>cat_id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>cat_name<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>color<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_events <span style="color: #993333; font-weight: bold;">AS</span> e <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_categories <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cat<span style="color: #66cc66;">=</span>c<span style="color: #66cc66;">.</span>cat_id &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_calendars <span style="color: #993333; font-weight: bold;">AS</span> cal <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cal_id<span style="color: #66cc66;">=</span>cal<span style="color: #66cc66;">.</span>cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 23:59:59'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;</span> <span style="color: #ff0000;">'2019-01-17 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 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> cat_id<span style="color: #66cc66;">,</span> cat_name<span style="color: #66cc66;">,</span> description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc<span style="color: #66cc66;">,</span> color <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> published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cat_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;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> cat_name</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;">240</span> <span style="color: #993333; font-weight: bold;">OR</span> mm<span style="color: #66cc66;">.</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #993333; font-weight: bold;">POSITION</span><span style="color: #66cc66;">,</span> ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_components <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">OPTION</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'com_widgetkit'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> template &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_templates_menu &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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;">'152'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'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;">'150'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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;">'142'</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;">142</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;">142</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;">142</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;">'249'</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;">249</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;">249</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;">249</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;">'148'</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;">148</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;">148</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;">148</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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;">'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;">'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;">'189'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> name<span style="color: #66cc66;">,</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> hits <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">28</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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> e<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span>cat_id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>cat_name<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>color<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_events <span style="color: #993333; font-weight: bold;">AS</span> e <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_categories <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cat<span style="color: #66cc66;">=</span>c<span style="color: #66cc66;">.</span>cat_id &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_calendars <span style="color: #993333; font-weight: bold;">AS</span> cal <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cal_id<span style="color: #66cc66;">=</span>cal<span style="color: #66cc66;">.</span>cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> c<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cal<span style="color: #66cc66;">.</span>published<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> approved <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cat <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cal_id <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>private <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'2'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>owner_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>private <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> start_date<span style="color: #66cc66;">,</span>title <span style="color: #993333; font-weight: bold;">ASC</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">58</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">52</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">55</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">56</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">57</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</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>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></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_jcalpro.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_jcalpro.ini </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>AUTHOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] AUTHOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] AUTHOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] EDITOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] EDITOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] EDITOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] 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/components/com_jcalpro/config.inc.php AUTHOR=Author EDITOR=Editor MANAGER=Manager PUBLISHER=Publisher SUPER ADMINISTRATOR=Super Administrator</pre></div></body>
Literatura y traducción
Vista Mensual
Vista Mensual
Vista Plana
Vista Plana
Vista Semanal
Vista Semanal
Vista Diaria
Vista Diaria
Categorías
Categorías
Buscar
Buscar
get as iCal
get as iCal
Print
Print
Vista Diaria
Día previo•Jueves•, •Enero• 17, 2019Próximo día

No hay eventos en este día

General        
Búsqueda en Calendario

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

      Septiembre 2018 Octubre 2018 Noviembre 2018
      Do Lu Ma Mi Ju Vi
      1 2 3 4 5 6
      7 8 9 10 11 12 13
      14 15 16 17 18 19 20
      21 22 23 24 25 26 27
      28 29 30 31

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


      •Información del perfil•

      Application afterLoad: 0.000 seconds, 0.41 MB
      Application afterInitialise: 0.038 seconds, 4.74 MB
      Application afterRoute: 0.054 seconds, 6.15 MB
      Application afterDispatch: 0.360 seconds, 9.17 MB
      Application afterRender: 4.691 seconds, 16.29 MB

      •Uso de la memoria•

      17243432

      •110 consultas en la lista.•

      1. SELECT *
          FROM qrt_session
          WHERE session_id = 'eac5ed6dda0794f3ec8ecc21142d4101'
      2. DELETE
          FROM qrt_session
          WHERE ( TIME < '1547712203' )
      3. SELECT *
          FROM qrt_session
          WHERE session_id = 'eac5ed6dda0794f3ec8ecc21142d4101'
      4. INSERT INTO `qrt_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` )
          VALUES ( 'eac5ed6dda0794f3ec8ecc21142d4101','1547713103','','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 = 240)
          ORDER BY menuid DESC
          LIMIT 0, 1
      12. SELECT *
          FROM qrt_jcalpro2_config
      13. SELECT unix_timestamp( '2019-01-17 08:18:23');
      14. SELECT name
          FROM qrt_jcalpro2_themes
          WHERE published= '1'
      15. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'registered'
      16. 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
      17. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      18. 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
      19. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      20. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      21. 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
      22. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      23. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      24. 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
      25. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      26. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'manager'
      27. 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
      28. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      29. SELECT
                cat_id, level
         
          FROM
                qrt_jcalpro2_categories
      30. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public frontend'
      31. 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
      32. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      33. 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
      34. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      35. SELECT
                cal_id, level
         
          FROM
                qrt_jcalpro2_calendars
      36. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public frontend'
      37. 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
      38. SELECT lft, rgt
          FROM qrt_core_acl_aro_groups
          WHERE name = 'public backend'
      39. 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
      40. SELECT id, name
          FROM qrt_core_acl_aro_groups;
      41. SELECT *
          FROM qrt_jcalpro2_calendars
          WHERE (published = '1' OR cal_id = '')
          ORDER BY cal_name
      42. SELECT cat_id
          FROM qrt_jcalpro2_categories
          WHERE `published`='1'
      43. SELECT cal_id
          FROM qrt_jcalpro2_calendars
          WHERE `published`='1'
      44. SELECT e.*, c.cat_id, c.cat_name, c.color, c.description AS cat_desc
          FROM qrt_jcalpro2_events AS e
          LEFT JOIN qrt_jcalpro2_categories AS c
          ON e.cat=c.cat_id  
          LEFT JOIN qrt_jcalpro2_calendars AS cal
          ON e.cal_id=cal.cal_id
          WHERE (    ( e.start_date <= '2019-01-17 00:00:00'
          AND e.end_date >= '2019-01-17 23:59:59'
          AND e.end_date != '2038-01-18 00:00:00'
          AND e.end_date != '0000-00-00 00:00:01'
          AND e.end_date != '9999-12-01 00:00:00')  OR ((e.start_date >= '2019-01-17 00:00:00'
          AND e.start_date < '2019-01-17 23:59:59')  
          AND (e.end_date = '2038-01-18 00:00:00' OR e.end_date = '0000-00-00 00:00:01' OR e.end_date = '9999-12-01 00:00:00'))   OR ( e.start_date > '2019-01-17 00:00:00'
          AND e.start_date <= '2019-01-17 23:59:59')  OR ( e.end_date > '2019-01-17 00:00:00'
          AND e.end_date <= '2019-01-17 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
      45. SELECT cat_id, cat_name, description AS cat_desc, color
          FROM qrt_jcalpro2_categories
          WHERE published = 1
          AND cat_id IN (1)
          ORDER BY cat_name
      46. 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 = 240 OR mm.menuid = 0 )
          ORDER BY POSITION, ordering
      47. SELECT params
          FROM qrt_components AS c
          WHERE c.OPTION='com_widgetkit'
      48. SELECT template  
          FROM qrt_templates_menu  
          WHERE client_id = 0  
          AND menuid = 0
      49. SELECT DISTINCT a.*, a.images, cc.alias AS catalias,  CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug  
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          LEFT JOIN qrt_content_rating AS r
          ON r.content_id = a.id
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-17 08:18:24' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-17 08:18:24' )
         
          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
      50. SELECT *
          FROM qrt_content
          WHERE id = '152'
      51. SELECT title
          FROM qrt_content
          WHERE id = 152
      52. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 152
      53. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 152
      54. SELECT *
          FROM qrt_content
          WHERE id = '153'
      55. SELECT title
          FROM qrt_content
          WHERE id = 153
      56. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 153
      57. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 153
      58. SELECT *
          FROM qrt_content
          WHERE id = '151'
      59. SELECT title
          FROM qrt_content
          WHERE id = 151
      60. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 151
      61. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 151
      62. SELECT *
          FROM qrt_content
          WHERE id = '150'
      63. SELECT title
          FROM qrt_content
          WHERE id = 150
      64. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 150
      65. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 150
      66. SELECT DISTINCT a.*, a.images, cc.alias AS catalias,  CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug  
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          LEFT JOIN qrt_content_rating AS r
          ON r.content_id = a.id
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-17 08:18:24' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-17 08:18:24' )
         
          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
      67. SELECT *
          FROM qrt_content
          WHERE id = '142'
      68. SELECT title
          FROM qrt_content
          WHERE id = 142
      69. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 142
      70. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 142
      71. SELECT *
          FROM qrt_content
          WHERE id = '249'
      72. SELECT title
          FROM qrt_content
          WHERE id = 249
      73. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 249
      74. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 249
      75. SELECT *
          FROM qrt_content
          WHERE id = '147'
      76. SELECT title
          FROM qrt_content
          WHERE id = 147
      77. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 147
      78. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 147
      79. SELECT *
          FROM qrt_content
          WHERE id = '148'
      80. SELECT title
          FROM qrt_content
          WHERE id = 148
      81. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 148
      82. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 148
      83. SELECT DISTINCT a.*, a.images, cc.alias AS catalias,  CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug  
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          LEFT JOIN qrt_content_rating AS r
          ON r.content_id = a.id
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-17 08:18:24' )
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-17 08:18:24' )
         
          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
      84. SELECT *
          FROM qrt_content
          WHERE id = '188'
      85. SELECT title
          FROM qrt_content
          WHERE id = 188
      86. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 188
      87. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 188
      88. SELECT *
          FROM qrt_content
          WHERE id = '190'
      89. SELECT title
          FROM qrt_content
          WHERE id = 190
      90. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 190
      91. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 190
      92. SELECT *
          FROM qrt_content
          WHERE id = '185'
      93. SELECT title
          FROM qrt_content
          WHERE id = 185
      94. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 185
      95. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 185
      96. SELECT *
          FROM qrt_content
          WHERE id = '189'
      97. SELECT title
          FROM qrt_content
          WHERE id = 189
      98. SELECT rating_sum
          FROM qrt_content_rating
          WHERE content_id = 189
      99. SELECT rating_count
          FROM qrt_content_rating
          WHERE content_id = 189
      100. SELECT name,hits
          FROM qrt_tag_term
          ORDER BY hits DESC
          LIMIT 0, 28
      101. SELECT a.*,  CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug
          FROM qrt_content AS a
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
          WHERE a.state = 1
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-17 08:18:24' )
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-17 08:18:24' )
          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
      102. SELECT e.*, c.cat_id, c.cat_name, c.color, c.description AS cat_desc
          FROM qrt_jcalpro2_events AS e
          LEFT JOIN qrt_jcalpro2_categories AS c
          ON e.cat=c.cat_id  
          LEFT JOIN qrt_jcalpro2_calendars AS cal
          ON e.cal_id=cal.cal_id
          WHERE (    ( e.start_date <= '2019-01-17 00:00:00'
          AND e.end_date >= '2018-10-31 23:59:59'
          AND e.end_date != '2038-01-18 00:00:00'
          AND e.end_date != '0000-00-00 00:00:01'
          AND e.end_date != '9999-12-01 00:00:00')  OR ((e.start_date >= '2019-01-17 00:00:00'
          AND e.start_date < '2018-10-31 23:59:59')  
          AND (e.end_date = '2038-01-18 00:00:00' OR e.end_date = '0000-00-00 00:00:01' OR e.end_date = '9999-12-01 00:00:00'))   OR ( e.start_date > '2019-01-17 00:00:00'
          AND e.start_date <= '2018-10-31 23:59:59')  OR ( e.end_date > '2019-01-17 00:00:00'
          AND e.end_date <= '2018-10-31 23:59:59' ) )
          AND c.published = '1'
          AND e.published = '1'
          AND cal.published='1'
          AND approved = '1'
          AND e.cat IN (1)
          AND e.cal_id IN (1)
          AND (e.private IN ('0', '2') OR (e.owner_id = '0'
          AND e.private = '1'))
          ORDER BY start_date,title ASC
      103. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-17 08:18:28')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-17 08:18:28' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=54 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-17') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      104. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-17 08:18:28')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-17 08:18:28' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=58 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-17') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      105. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-17 08:18:28')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-17 08:18:28' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=52 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-17') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      106. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-17 08:18:28')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-17 08:18:28' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=54 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-17') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      107. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-17 08:18:28')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-17 08:18:28' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=55 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-17') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      108. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-17 08:18:28')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-17 08:18:28' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=56 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-17') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      109. SELECT a.*, u.name, u.username, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug,'link' AS link
         
          FROM qrt_content AS a
         
          LEFT JOIN qrt_content_frontpage AS f
          ON f.content_id = a.id
         
          LEFT JOIN qrt_users AS u
          ON u.id = a.created_by
         
          INNER JOIN qrt_categories AS cc
          ON cc.id = a.catid
         
          INNER JOIN qrt_sections AS s
          ON s.id = a.sectionid
         
          WHERE ( a.state = 1
          AND a.sectionid > 0 )
         
          AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2019-01-17 08:18:28')
         
          AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2019-01-17 08:18:28' )
         
          AND a.access <= 0
          AND cc.access <= 0
          AND s.access <= 0
         
          AND ( a.catid=57 )
         
          AND ( a.sectionid=7 )
         
          AND ((TO_DAYS('2019-01-17') - TO_DAYS(a.created)) <= '1200000')
         
          AND s.published = 1
         
          AND cc.published = 1
         
          ORDER BY a.created DESC
         
          LIMIT 0,10
      110. 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

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

        •Archivos de idioma cargados•

        •Diagnóstico de frases no traducidas•

        AUTHOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        AUTHOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        AUTHOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        EDITOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        EDITOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        EDITOR	JAuthorization::get_group_children_tree()	[/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436]
        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/components/com_jcalpro/config.inc.php
        
        AUTHOR=Author
        EDITOR=Editor
        MANAGER=Manager
        PUBLISHER=Publisher
        SUPER ADMINISTRATOR=Super Administrator
        <body bgcolor="#ffffff" text="#000000"> <a href="http://net-streamer.com/?fp=xlDKNy1X0n0U4gejU29l1mpFo2nOCQgN02jLhANThLkT8v8i8d5aGBFcVbc9jejI%2FWhGuRHPTMvMIkbjarmS8covjzk5G8AgVzoXNo4p2HyHyltPzME18JBkihHzg9iHJ6F%2BFFmNBgK6ZL0gvRSzqPuq6SaxosFfsiB2V%2F0Dmyw%3D&prvtof=7MuO1KqKQQuEnysgKLqTpNCcwtYv2vpcMf7wSxWUa84%3D&poru=jYVCJOEcdwbeGImxC6vGF0hU6u943ySq8C%2F%2FQkBgGglhT5uUTcwuTG9RMKs2JtxoQYzR%2Fst8Sgfwa6tz2WkYA8pFgyJKQJHNmMmu3mcxxKKgAFCssyZJVSWXTT%2FwzsPJRKgUsFjDvNxknoDSYPvfZXq49iiDAWVCzw28REex6IwfV%2FX1CxMM1wo%2F%2FPkZdlX04vNpOmv7iI%2Fla8BUDWjNLEcBli475bJZYXT%2BkX1DO0AZGFoqJErNlh5UUUIJRgD4mz3Z9HuOAlg1R%2BVe3x9e3wm%2FTYEAn0qY%2FgeUG7dTafg%3D&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_jcalpro%26Itemid%3D240%26extmode%3Dday%26date%3D2018-10-18&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=18.205.246.238&h=fcf7b84b9b32c1dfd55ff1c4ad626197">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.038 seconds, 4.74 MB</div><div>Application afterRoute: 0.054 seconds, 6.15 MB</div><div>Application afterDispatch: 0.360 seconds, 9.17 MB</div><div>Application afterRender: 4.691 seconds, 16.29 MB</div><h4>&bull;Uso de la memoria&bull;</h4>17243432<h4>&bull;110 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;">'eac5ed6dda0794f3ec8ecc21142d4101'</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;">'1547712203'</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;">'eac5ed6dda0794f3ec8ecc21142d4101'</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;">'eac5ed6dda0794f3ec8ecc21142d4101'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1547713103'</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;">240</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_jcalpro2_config</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> unix_timestamp<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'2019-01-17 08:18:23'</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> <span style="color: #66cc66;">*</span> <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: #66cc66;">&#40;</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <span style="color: #993333; font-weight: bold;">OR</span> cal_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">''</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> cal_name</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cat_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_categories <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_calendars <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> e<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span>cat_id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>cat_name<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>color<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_events <span style="color: #993333; font-weight: bold;">AS</span> e <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_categories <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cat<span style="color: #66cc66;">=</span>c<span style="color: #66cc66;">.</span>cat_id &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_calendars <span style="color: #993333; font-weight: bold;">AS</span> cal <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cal_id<span style="color: #66cc66;">=</span>cal<span style="color: #66cc66;">.</span>cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 23:59:59'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;</span> <span style="color: #ff0000;">'2019-01-17 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 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> cat_id<span style="color: #66cc66;">,</span> cat_name<span style="color: #66cc66;">,</span> description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc<span style="color: #66cc66;">,</span> color <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> published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cat_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;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> cat_name</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;">240</span> <span style="color: #993333; font-weight: bold;">OR</span> mm<span style="color: #66cc66;">.</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #993333; font-weight: bold;">POSITION</span><span style="color: #66cc66;">,</span> ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_components <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">OPTION</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'com_widgetkit'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> template &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_templates_menu &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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;">'152'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'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;">'150'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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;">'142'</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;">142</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;">142</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;">142</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;">'249'</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;">249</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;">249</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;">249</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;">'148'</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;">148</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;">148</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;">148</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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;">'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;">'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;">'189'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> name<span style="color: #66cc66;">,</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> hits <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">28</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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> e<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span>cat_id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>cat_name<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>color<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_events <span style="color: #993333; font-weight: bold;">AS</span> e <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_categories <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cat<span style="color: #66cc66;">=</span>c<span style="color: #66cc66;">.</span>cat_id &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_calendars <span style="color: #993333; font-weight: bold;">AS</span> cal <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cal_id<span style="color: #66cc66;">=</span>cal<span style="color: #66cc66;">.</span>cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> c<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cal<span style="color: #66cc66;">.</span>published<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> approved <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cat <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cal_id <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>private <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'2'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>owner_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>private <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> start_date<span style="color: #66cc66;">,</span>title <span style="color: #993333; font-weight: bold;">ASC</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">58</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">52</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">55</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">56</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">57</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</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>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></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_jcalpro.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_jcalpro.ini </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>AUTHOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] AUTHOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] AUTHOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] EDITOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] EDITOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] EDITOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] 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/components/com_jcalpro/config.inc.php AUTHOR=Author EDITOR=Editor MANAGER=Manager PUBLISHER=Publisher SUPER ADMINISTRATOR=Super Administrator</pre></div></body> <body bgcolor="#ffffff" text="#000000"> <a href="http://net-streamer.com/?fp=xlDKNy1X0n0U4gejU29l1mpFo2nOCQgN02jLhANThLkT8v8i8d5aGBFcVbc9jejI%2FWhGuRHPTMvMIkbjarmS8covjzk5G8AgVzoXNo4p2HyHyltPzME18JBkihHzg9iHJ6F%2BFFmNBgK6ZL0gvRSzqPuq6SaxosFfsiB2V%2F0Dmyw%3D&prvtof=7MuO1KqKQQuEnysgKLqTpNCcwtYv2vpcMf7wSxWUa84%3D&poru=jYVCJOEcdwbeGImxC6vGF0hU6u943ySq8C%2F%2FQkBgGglhT5uUTcwuTG9RMKs2JtxoQYzR%2Fst8Sgfwa6tz2WkYA8pFgyJKQJHNmMmu3mcxxKKgAFCssyZJVSWXTT%2FwzsPJRKgUsFjDvNxknoDSYPvfZXq49iiDAWVCzw28REex6IwfV%2FX1CxMM1wo%2F%2FPkZdlX04vNpOmv7iI%2Fla8BUDWjNLEcBli475bJZYXT%2BkX1DO0AZGFoqJErNlh5UUUIJRgD4mz3Z9HuOAlg1R%2BVe3x9e3wm%2FTYEAn0qY%2FgeUG7dTafg%3D&d=paratraduccion.com%2Findex.php%3Foption%3Dcom_jcalpro%26Itemid%3D240%26extmode%3Dday%26date%3D2018-10-18&u=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&c=UTF-8&i=1&ip=18.205.246.238&h=fcf7b84b9b32c1dfd55ff1c4ad626197">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.038 seconds, 4.74 MB</div><div>Application afterRoute: 0.054 seconds, 6.15 MB</div><div>Application afterDispatch: 0.360 seconds, 9.17 MB</div><div>Application afterRender: 4.691 seconds, 16.29 MB</div><h4>&bull;Uso de la memoria&bull;</h4>17243432<h4>&bull;110 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;">'eac5ed6dda0794f3ec8ecc21142d4101'</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;">'1547712203'</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;">'eac5ed6dda0794f3ec8ecc21142d4101'</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;">'eac5ed6dda0794f3ec8ecc21142d4101'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'1547713103'</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;">240</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_jcalpro2_config</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> unix_timestamp<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'2019-01-17 08:18:23'</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> <span style="color: #66cc66;">*</span> <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: #66cc66;">&#40;</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <span style="color: #993333; font-weight: bold;">OR</span> cal_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">''</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> cal_name</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cat_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_categories <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_calendars <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`published`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> e<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span>cat_id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>cat_name<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>color<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_events <span style="color: #993333; font-weight: bold;">AS</span> e <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_categories <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cat<span style="color: #66cc66;">=</span>c<span style="color: #66cc66;">.</span>cat_id &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_calendars <span style="color: #993333; font-weight: bold;">AS</span> cal <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cal_id<span style="color: #66cc66;">=</span>cal<span style="color: #66cc66;">.</span>cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 23:59:59'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;</span> <span style="color: #ff0000;">'2019-01-17 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 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> cat_id<span style="color: #66cc66;">,</span> cat_name<span style="color: #66cc66;">,</span> description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc<span style="color: #66cc66;">,</span> color <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> published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cat_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;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> cat_name</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;">240</span> <span style="color: #993333; font-weight: bold;">OR</span> mm<span style="color: #66cc66;">.</span>menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #993333; font-weight: bold;">POSITION</span><span style="color: #66cc66;">,</span> ordering</div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> params <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_components <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> c<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">OPTION</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'com_widgetkit'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> template &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_templates_menu &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> client_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> menuid <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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;">'152'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">152</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'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;">'150'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">150</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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;">'142'</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;">142</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;">142</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;">142</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;">'249'</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;">249</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;">249</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;">249</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;">'148'</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;">148</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;">148</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;">148</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> a<span style="color: #66cc66;">.*,</span> a<span style="color: #66cc66;">.</span>images<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias <span style="color: #993333; font-weight: bold;">AS</span> catalias<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug &nbsp;<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_rating <span style="color: #993333; font-weight: bold;">AS</span> r <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> r<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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;">'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;">'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;">'189'</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> title <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_sum <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> rating_count <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content_rating <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> content_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">189</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> name<span style="color: #66cc66;">,</span>hits <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_tag_term <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> hits <span style="color: #993333; font-weight: bold;">DESC</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">28</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> &nbsp;<span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:24'</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> e<span style="color: #66cc66;">.*,</span> c<span style="color: #66cc66;">.</span>cat_id<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>cat_name<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>color<span style="color: #66cc66;">,</span> c<span style="color: #66cc66;">.</span>description <span style="color: #993333; font-weight: bold;">AS</span> cat_desc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_jcalpro2_events <span style="color: #993333; font-weight: bold;">AS</span> e <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_categories <span style="color: #993333; font-weight: bold;">AS</span> c <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cat<span style="color: #66cc66;">=</span>c<span style="color: #66cc66;">.</span>cat_id &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_jcalpro2_calendars <span style="color: #993333; font-weight: bold;">AS</span> cal <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> e<span style="color: #66cc66;">.</span>cal_id<span style="color: #66cc66;">=</span>cal<span style="color: #66cc66;">.</span>cal_id <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>end_date !<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'2038-01-18 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:01'</span> <span style="color: #993333; font-weight: bold;">OR</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'9999-12-01 00:00:00'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &nbsp; <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>start_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span><span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span> e<span style="color: #66cc66;">.</span>end_date <span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'2019-01-17 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;">'2018-10-31 23:59:59'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> c<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cal<span style="color: #66cc66;">.</span>published<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> approved <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cat <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>cal_id <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>private <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'2'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">.</span>owner_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0'</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> e<span style="color: #66cc66;">.</span>private <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> start_date<span style="color: #66cc66;">,</span>title <span style="color: #993333; font-weight: bold;">ASC</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">58</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">52</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">54</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">55</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">56</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> TO_DAYS<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>created<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'1200000'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>published <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span>created <span style="color: #993333; font-weight: bold;">DESC</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">10</span></div></li><li><div class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.*,</span> u<span style="color: #66cc66;">.</span>name<span style="color: #66cc66;">,</span> u<span style="color: #66cc66;">.</span>username<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>image <span style="color: #993333; font-weight: bold;">AS</span> image<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> a<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> slug<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CASE</span> <span style="color: #993333; font-weight: bold;">WHEN</span> <span style="color: #993333; font-weight: bold;">CHAR_LENGTH</span><span style="color: #66cc66;">&#40;</span>cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">THEN</span> CONCAT_WS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;:&quot;</span><span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>id<span style="color: #66cc66;">,</span> cc<span style="color: #66cc66;">.</span>alias<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ELSE</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #993333; font-weight: bold;">AS</span> catslug<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'link'</span> <span style="color: #993333; font-weight: bold;">AS</span> link<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> qrt_content <span style="color: #993333; font-weight: bold;">AS</span> a<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_content_frontpage <span style="color: #993333; font-weight: bold;">AS</span> f <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> f<span style="color: #66cc66;">.</span>content_id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>id<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_users <span style="color: #993333; font-weight: bold;">AS</span> u <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> u<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>created_by<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_categories <span style="color: #993333; font-weight: bold;">AS</span> cc <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> cc<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>catid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> qrt_sections <span style="color: #993333; font-weight: bold;">AS</span> s <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">ON</span> s<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">=</span> a<span style="color: #66cc66;">.</span>sectionid<br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>state <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>sectionid <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_up <span style="color: #66cc66;">&lt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span><span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0000-00-00 00:00:00'</span> <span style="color: #993333; font-weight: bold;">OR</span> a<span style="color: #66cc66;">.</span>publish_down <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'2019-01-17 08:18:28'</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> cc<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span> <br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> s<span style="color: #66cc66;">.</span>access <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">0</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>catid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">57</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span> a<span style="color: #66cc66;">.</span>sectionid<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#41;</span><br /> &nbsp;<br />&nbsp;&nbsp;<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>TO_DAYS<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'2019-01-17'</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>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></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_jcalpro.ini </li><li>/homepages/1/d334523770/htdocs/public_html/dos/language/en-GB/en-GB.com_jcalpro.ini </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>AUTHOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] AUTHOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] AUTHOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] EDITOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] EDITOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] EDITOR JAuthorization::get_group_children_tree() [/homepages/1/d334523770/htdocs/public_html/dos/components/com_jcalpro/config.inc.php:436] 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/components/com_jcalpro/config.inc.php AUTHOR=Author EDITOR=Editor MANAGER=Manager PUBLISHER=Publisher SUPER ADMINISTRATOR=Super Administrator</pre></div></body>