In my database I have these tables
products
-------------
id | title  | 
-------------
1    Cheese  
2    Milk
3    Water
etc .....
products_to_city
    -----------------------
    city_id | product_id   | 
    -----------------------
    1         1
    1         2
    2         3
    3         1
    3         1
I am using this sql query to fetch the result
SELECT
 p.id,
 p.title
 FROM products p
 LEFT JOIN products_to_city ptc ON ptc.id = 1
The problem is that the query above fetches all data from table instead of only where city is 1
What am I doing wrong ?
 
     
     
     
     
     
     
     
     
    