Btw. (just an option) Wikia since sometime is occasionally using FluentSQL which has "fetchAll" method - you might want to take a look at it.