DATABASE ERROR:
SELECT i.* , AVG( r.points ) AS rating
                    FROM cms_work_items i
                    LEFT JOIN cms_work_ratings r ON r.item_id = i.id
                    WHERE i.published = 1 AND i.pubdate<'2024-03-28 11:32:53' AND i.category_id = 1001 AND UPPER(LTRIM(i.title)) LIKE UPPER('Ê%')
                    GROUP BY i.id ORDER BY title desc
Query 'SELECT i.* , AVG( r.points ) AS rating FROM cms_work_items i LEFT JOIN cms_work_ratings r ON r.item_id = i.id WHERE i.published = 1 AND i.pubdate<'2024-03-28 11:32:53' AND i.category_id = 1001 AND UPPER(LTRIM(i.title)) LIKE UPPER('Ê%') GROUP BY i.id ORDER BY title desc' failed