colony'@'localhost' is not the normal way to connect to the db, normally you are going to use a given user you made, hence it would come as say colony_mydb@localhost or something
however..
(Ive been blind)
the error is correct..
Youve told to select a db, but put an sql statement in, not the...