Thread:Project:Support desk/Database error 1054 :When Clicking Random Page

Hi I am getting the following error when clicking the Random page. Database error

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "RandomPage::selectRandomPageFromDB". Database returned error "1054: Unknown column 'Array' in 'where clause' (localhost)".

I had my wiki in another server (version 1.6) and initially i installed a the latest media wiki version in the new server and they imported the sql database from the old server to the new server. After that I run the update.php both from the web browser and then from the command prompt.

Strangely I am getting the error in both old version and the new version. Can somebody help me with this.