Added missing key to SQL clause