SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'd-Health' UNION SELECT count(1) as total,'investments' a' at line 2 (SQL: select sum(total) as bcks from ( SELECT count(1) as total,'likes' as type FROM `likes` WHERE projectid='200274-KnKt'd-Health' UNION SELECT count(1) as total,'investments' as type FROM `bc_investments` WHERE projectid='200274-KnKt'd-Health' UNION SELECT count(1) as total,'mentors' as type FROM `bc_mentors` WHERE projectid='200274-KnKt'd-Health' UNION SELECT count(1) as total,'others' as type FROM `bc_others` WHERE projectid='200274-KnKt'd-Health' UNION SELECT count(1) as total,'partners' as type FROM `bc_partners` WHERE projectid='200274-KnKt'd-Health' UNION SELECT count(1) as total,'pilots' as type FROM `bc_pilots` WHERE projectid='200274-KnKt'd-Health' UNION SELECT count(1) as total,'tries' as type FROM `bc_tries` WHERE projectid='200274-KnKt'd-Health' UNION SELECT count(1) as total,'backs' as type FROM `payments` WHERE projectid='200274-KnKt'd-Health' and ( payment_status='preapproval' or payment_status='paid') UNION SELECT count(1) as total,'follows' as type FROM `followprojects` WHERE projectid='200274-KnKt'd-Health' ) f)