Trying to set up subqueries with Code Igniter