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

[eluser]Unknown[/eluser]
Hello again,

i need perform this part of sql query with activerecord

Code:
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
Code:
$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




Theme © iAndrew 2016 - Forum software by © MyBB