It seems clear to me that it's a MySql error, not a Qcodo related one. Your query returns false for some reason (bad SQL construction, DB server disconnection, or whatever), so when going to build the Qcodo result object the constructor receives a boolean false instead of a DB “mysqli_resource”. Thus the type error message, that is self-explanatory.
Address the MySql error and everything will be fine. If it's in the code, use the call stack dumped in the error page to trace and find the cause. It helps a lot.