There are probably differences in other fields. To see them, this should work:
SELECT *
FROM customer as c, lesson as l , Employee as e
WHERE l.Prospect_ID =c.id
AND c.ID_ofProducer= e.id
AND last_name = 'Smith'
If there are no differences, then there are duplicates in one or more of the tables.
If you want to eliminate such duplicates, you can do so with the distinct
keyword:
SELECT distinct c.id, p.last_name, e.full_name, l.Current_step, l.Current_Step_date
FROM customer as c, lesson as l , Employee as e
WHERE l.Prospect_ID =c.id
AND c.ID_ofProducer= e.id
AND last_name = 'Smith'
If that is not supported, you can do the same thing with group by
:
SELECT c.id, p.last_name, e.full_name, l.Current_step, l.Current_Step_date
FROM customer as c, lesson as l , Employee as e
WHERE l.Prospect_ID =c.id
AND c.ID_ofProducer= e.id
AND last_name = 'Smith'
group by c.id, p.last_name, e.full_name, l.Current_step, l.Current_Step_date