Added missing bracket to SQL