Hola
Il debug dice:
500 - JDatabaseMySQL::query: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND a.state = 1 ORDER BY a.hits DESC LIMIT 5' at line 1 SQL=SELECT a.id AS id, a.title AS title, a.created AS created, a.introtext AS intro, a.catid AS catid, a.sectionid AS sectionid, a.ordering AS ordering, b.title AS section, c.title AS cat, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END AS catslug FROM añg_content AS a LEFT JOIN añg_sections AS b ON b.id = a.sectionid LEFT JOIN añg_categories AS c ON c.id = a.catid WHERE a.id <> '32' AND a.sectionid <> '7' AND ( ( LOWER(a.created_by_alias) LIKE '%ga=%' AND LOWER(a.created_by_alias) LIKE '%federico-piccoli%' ) OR a.created_by = ) AND a.state = 1 ORDER BY a.hits DESC LIMIT 5
Da quale tabella comincio a cercare?