Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB