Welcome Guest, Not a member yet? Register   Sign In
Help with DB query

Hello again,

i need perform this part of sql query with activerecord

SELECT b_articles.*, b_users.*, b_menus.*, COUNT(b_comments.c_id) FROM b_articles, b_users, b_menus, b_comments
but if i try
$this->db->select('articles, users, menus, COUNT(comments)')
for tables i have prefix 'b_' configured in database.php

How can i select all columns from three tables and 1 COUNT column from fourth table??

Thanks for help

Messages In This Thread
Help with DB query - by El Forum - 09-23-2008, 02:41 PM

Theme © iAndrew 2016 - Forum software by © MyBB