Fixed problems and added relation_n_n for searching in all fields

- removed HAVING statements, they gave problems when using user defined $crud->where statements
- Bundled all like_or statements into one where statement
- Making sure all columns are prefixed with their respective table names
- Implemented searching in all fields for relation_n_n fields