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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
SELECT SQL_NO_CACHE DISTINCT(s.idspectacle),
s.url_clean,s.idtypespectacle,s.creation_date,s.title as titlespectacle,
sc.date as prochdate,
ty.typespectacle,
t.title as titletext, t.idtext as idtext, t.type as type, t.url_clean as url_clean_text,
ct.idcontent, ct.title as titlecontent,
cl.classification,om.idmultimedia, om.idrole, om.object
FROM
schedules sc,
spectacles s,
typesspectacles ty,
texts t,
text_spectacle ts,
spectacle_person sp,
statscumul st,
object_multimedia om ,
classification_module cm,
object_content oc,
classifications cl,
content_classification cc,
contents ct
WHERE
sc.idspectacle=s.idspectacle
AND ts.idtext=t.idtext
AND s.idspectacle=ts.idspectacle
AND sp.idspectacle=s.idspectacle
AND s.idspectacle=oc.idobject
AND ct.idcontent=oc.idcontent
AND ct.idcontent=cc.idcontent
AND st.idcontent=ct.idcontent
AND st.idobject=s.idspectacle
AND cl.idclassification=cc.idclassification
AND cm.idclassification=cl.idclassification
AND om.idobject=ct.idcontent
AND om.object='contents'
AND oc.object='spectacles'
AND ct.language='fr'
AND cm.module='thnet'
AND ct.display_media=1
AND ty.idtypespectacle=s.idtypespectacle
AND st.type='article'
AND st.video=1
AND st.object='spectacles'
GROUP BY s.idspectacle
ORDER BY st.count LIMIT 15 |
Partager