DB QUERY ERROR (db_get_value()):

SELECT groupid FROM groups WHERE url_name = 'gallery'