You can try SELECT blabala FROM your_table WHERE checkbox_field LIKE '%blue%' for retrieving all the record which have blue checkbox checked.
You can store your checkbox values in SET field in which the predefined values are blue,red,green and retrieve the records using SLECT blablabla FROM your_table WHERE FIND_IN_SET('blue',checkbox_field)
Simon