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 'where price <=9.9999 ) union (select count(*) as c,price from where price>=1' at line 1
in:
[(select count(*) as c,price from where price <=9.9999 ) union (select count(*) as c,price from where price>=10 and price<=14.9999 ) union (select count(*) as c,price from where price>=15 and price<=19.9999 ) union (select count(*) as c,price from where price >=20 )]