Image galleries

user warning: Expression #1 of ORDER BY clause is not in SELECT list, references column 'ichina.n.sticky' which is not in SELECT list; this is incompatible with DISTINCT query: SELECT DISTINCT(n.nid) FROM drp_node n INNER JOIN drp_term_node tn ON n.nid = tn.nid INNER JOIN drp_node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all'))) AND ( tn.tid IN (7) AND n.type = 'image' AND n.status = 1 )ORDER BY n.sticky DESC, n.created DESC in /var/www/modules/image/contrib/image_gallery/image_gallery.module on line 157.