joomla与mssql警告

时间:2016-07-14 08:13:05

标签: sql-server joomla database-connection

“组件/消息/新私人消息”页面“选择用户”时出现以下错误。我该如何解决这个问题?

错误:

  

[Microsoft] [SQL Server的ODBC驱动程序11] [SQL Server]列'#__ users.lastResetTime'在选择列表中无效,因为它不包含在聚合函数或GROUP BY子句中。 SQL = SELECT a。* FROM [#__users] AS LEFT JOIN #__user_usergroup_map AS map2 ON map2.user_id = a.id WHERE map2.group_id IN(7,8)AND id NOT IN(232)GROUP BY [a]。 [ID],[A]。[名称],[A]。[用户名],[A]。[口令],[A]。[块],[A]。[sendEmail],[A]。[registerDate ],[a]。[lastvisitDate],[a]。[激活],[a]。[params],[a]。[email] ORDER BY [a]。[name] asc [Microsoft] [ODBC Driver 11 for SQL Server] [SQL Server]列'#__ users.lastResetTime'在选择列表中无效,因为它不包含在聚合函数或GROUP BY子句中。
  SQL = SELECT * FROM(SELECT a。*,ROW_NUMBER()OVER(ORDER BY [a]。[name] asc)AS RowNumber FROM [#__users] AS LEFT JOIN #__user_usergroup_map AS map2 ON map2.user_id = a.id WHERE map2.group_id IN(7,8)AND id NOT IN(232)GROUP BY [a]。[id],[a]。[name],[a]。[username],[a]。[password] ,[A]。[块],[A]。[sendEmail],[A]。[registerDate],[A]。[lastvisitDate],[A]。[活化],[A]。[PARAMS],[ a]。[email])A在哪里A.RowNumber在1和20之间   [Microsoft] [SQL Server的ODBC驱动程序11] [SQL Server]列'#__ users.lastResetTime'在选择列表中无效,因为它不包含在聚合函数或GROUP BY子句中。 SQL = SELECT a。* FROM [#__users] AS LEFT JOIN #__user_usergroup_map AS map2 ON map2.user_id = a.id WHERE map2.group_id IN(7,8)AND id NOT IN(232)GROUP BY [a]。 [ID],[A]。[名称],[A]。[用户名],[A]。[口令],[A]。[块],[A]。[sendEmail],[A]。[registerDate ],[a]。[lastvisitDate],[a]。[激活],[a]。[params],[a]。[email] ORDER BY [a]。[name] asc

0 个答案:

没有答案