select DISTINCT `user` from `tiki_history` where `pageName`=? order by `version` desc
Values:
0
HomePage
Message:
Expression #1 of ORDER BY clause is not in SELECT list, references column 'africzd_wiki.tiki_history.version' which is not in SELECT list; this is incompatible with DISTINCT
Built query was probably:
select DISTINCT `user` from `tiki_history` where `pageName`='HomePage' order by `version` desc