You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'AS image\n FROM jos_content AS a\n INNER JOIN jos_categories AS cc ON cc.id = a...\' at line 1 SQL=SELECT a.* AS image\n FROM jos_content AS a\n INNER JOIN jos_categories AS cc ON cc.id = a.catid\n WHERE a.state = \'1\' AND (sectionid IN (-1) OR cc.id IN (28, 29)) \n AND ( publish_up = \'0000-00-00 00:00:00\' OR publish_up <= \'2026-04-15 10:51:59\' )\n AND ( publish_down = \'0000-00-00 00:00:00\' OR publish_down >= \'2026-04-15 10:51:59\' )\n ORDER BY publish_up DESC\nlimit 0,20