Fixed error in sql query for pantry items