Maybe using [Database::makeList()](https://github.com/Wikia/app/blob/dev/includes/db/Database.php#L1775) method will make the code more readable :)