Fixing select statement by adding id property for bar colours!