I have two tables for properties and images Which have the same column name like id,name in both tables. parent column is a foreign key in images.
SELECT DISTINCT(A.id),A.name,B.name AS img
FROM `jos_properties_products` AS A
LEFT JOIN `jos_properties_images` AS B ON A.id = B.parent

From the above i want to remove duplicate.
try this :