Added 'having' and 'sort_by' get conditions.