Made select stmt for favorites work