• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with this SELECT statement

#4
[eluser]rufnex[/eluser]
Sorry as is not relevant here (was late on yesterday ;o)
Try to set ' in your condition:

Code:
->select("SUM(IF(comments.is_active = '1',1,0)) total_comments")


Messages In This Thread
Help with this SELECT statement - by El Forum - 10-16-2014, 11:36 AM
Help with this SELECT statement - by El Forum - 10-16-2014, 12:59 PM
Help with this SELECT statement - by El Forum - 10-16-2014, 11:21 PM
Help with this SELECT statement - by El Forum - 10-16-2014, 11:32 PM
Help with this SELECT statement - by El Forum - 10-17-2014, 02:15 AM
Help with this SELECT statement - by El Forum - 10-17-2014, 02:24 AM
Help with this SELECT statement - by El Forum - 10-17-2014, 02:30 AM
Help with this SELECT statement - by El Forum - 10-17-2014, 05:04 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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