Checkbox filters implemented in frontend.  sql query not working