fixed translateArticles functions

there were 3 errors:

* the function accessed the wrong array parameter of $arrParams
* the SQL statement was erroneous (WHERE WHERE)
* the function was unable to switch from the main language to another
language