Codice:
SELECT a.fulltext, a.id, a.title, a.alias, a.title_alias, atrotext, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by,a.publish_up, a.publish_down, a.attribs, a.metadata, a.meta, a.metadesc, a.access, a.hits, a.featured, LENGTH(a.fulltext) AS readmore,a.fulltext, a.id, a.title, a.alias, a.title_alias, a.introtext, a.state, a.catid,
reated, a.created_by, a.created_by_alias, a.modified, a.modified_by,a.publish_up, a.publish_down, a.attribs, a.metadata, a.metakey, a.metadesc, a.access, a.h, a.featured, LENGTH(a.fulltext) AS readmore,c.title AS category_title, c.path AS category_route, c.access AS category_access, c.alias AS category_alias,CASEEN a.created_by_alias > ' ' THEN a.created_by_alias ELSE ua.name END AS author,ua.email AS author_email,contact.id as contactid,parent.title as parent_title,rent.id as parent_id, parent.path as parent_route, parent.alias as parent_alias,ROUND(v.rating_sum / v.rating_count, 0) AS rating, v.rating_count as rating_ct,c.published, CASE WHEN badcats.id is null THEN c.published ELSE 0 END AS parents_published
FROM avjos16_content AS a
LEFT JOIN avjos16_content_frontpage AS fp ON fp.content_id = a.id
LEFT JOIN avjos16_categories AS c ON c.id = a.catid
LEFT JOIN avjos16_users AS ua ON ua.id = a.created_by
LEFT JOIN avjos16_users AS uam ON uam.id = a.modified_by
LEFT JOIN (
SELECT contact.user_id, MAX(contact.id) AS id, contact.language
FROM avjos16_contact_details AS contact
WHERE contact.published = 1
GROUP BY contact.user_id, contact.language) AS contact ON contact.user_id = a.created_by
LEFT JOIN avjos16_categories as parent ON parent.id = c.parent_id
LEFT JOIN avjos16_content_rating AS v ON a.id = v.content_id
LEFT OUTER JOIN (SELECT cat.id as id FROM avjos16_categories AS cat JOIN avjos16_categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt WHERE pareextension = 'com_content' AND parent.published != 1 GROUP BY cat.id ) AS badcats ON badcats.id = c.id
WHERE a.access IN (1,1) AND c.access IN (1,1) AND CASE WHEN badcats.id is null THEN a.state ELSE 0 END = 1 AND a.catid IN (16,17,18,20,21,29,27,25,22,30) AND.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2013-08-05 09:52:03') AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2013-08-05 09:03') AND a.language in ('it-IT','*') AND (contact.language in ('it-IT','*') OR contact.language IS NULL)
GROUP BY a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, a.checked_out_time, a.catid, a.created, a.created_by, a.created_by_alias, a.creat
a.modified, a.modified_by, uam.name, a.publish_up, a.attribs, a.metadata, a.metakey, a.metadesc, a.access, a.hits, a.xreference, a.featured, a.fulltext, a.se, a.publish_down, badcats.id, c.title, c.path, c.access, c.alias, uam.id, ua.name, ua.email, contact.id, parent.title, parent.id, parent.path, parent.alias,rating_sum, v.rating_count, c.published, c.lft, a.ordering, parent.lft, fp.ordering, c.id, a.images, a.urls
ORDER BY a.created desc LIMIT 0, 4
Dovresti verificare se è qualche componente specifico a lanciarla, dovresti comunque aprire una discussione separata nella sezione joomla.