I am using this query to get single total value:
SELECT SUM(`contact_awards`.`amount`) AS amount
FROM (`contact_awards`)
WHERE
`contact_awards`.`gift_award_id` IN (1)
AND `created` BETWEEN '2013-05-05' AND '2014-04-01'
GROUP
BY `contact_awards`.`amount`
However when run, it products two rows containing amount
field:
500
1000
Why doesn't it run single row with sum 1500
?
Thanks for your help