That is my query:
SELECT DISTINCT `row` FROM `parts` WHERE `wall` = '1' ORDER BY `row`
That is an answer to the query:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
It looks like if the statement WHERE `wall` = ‘1’ was ignored, because the result is the same as if I made such query
SELECT DISTINCT `row` FROM `parts` ORDER BY `row`
I want the first query give me
1 3 4 9 19 (these are the “rows” where “wall” really =1)
I have read some posts about similar issues, still I can’t find the solution
I used my own sample data and got the correct results. I copied everything posted on SQL Fiddle to my local mysql database. And queried everything with phpmyadmin and everything worked. This a SQL query to insert data into your database.