I have a table like the following
id    field_id     field_value         user_id
1     4           'london'             12
2     4           'manchester'         33
3     25          'accounting'         12
4     25          'web designer'       37
5     27          'food'               12
6     27          'wine'               34
MY problem now is that I need to query it in human terms as follow,
I need to split the table somehow on a select query so I can search like so,
I need to search all users, which have ("london") AND ("accounting" OR "web design) AND (food OR wine)
My problem is I cannot split the field_value to seperate "location", "job title", "interests" if they where on different fields I would find it easy to do, but as they are on the same field, I am finding it difficult to use the AND and OR combination, 
If the questions is difficult to understand I will try and explain it further. many thnx
Also I would not Mind if there is a combination of php and mysql solution :)
 
     
     
    