Could not retrieve the data because: . The query was SELECT *, COUNT(rockorigin) as item_count FROM itemstable WHERE hide < 1 GROUP BY rockorigin ORDER BY item_count DESC.