• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.