I have the following problem:
SELECT a.*
FROM programm a
WHERE a.traffic IN ('DE;AT;CH;')
ORDER
BY a.programmid asc
LIMIT 0,10
That works wonderfully.
But if I only want to query one country, it is not possible:
SELECT a.*
FROM programm a
WHERE a.traffic IN ('DE;')
ORDER
BY a.programmid asc
LIMIT 0,10
Database structure:
<pre>
programmid | traffic
------------+------
1 | DE;AT;CH;
2 | AT;
3 | CH;
4 | PL;BG;DE;
5 | AM;BG;DE;
</pre>
When I query the database,
SELECT a.* FROM `programm` as a WHERE a.traffic IN ('DE;,BG;') ORDER BY a.programmid asc LIMIT 0,10
all program IDs should be listed where DE,BG is in traffic. That would be programmid 1,4,5