The reason you are getting the duplicating records is because you are doing a one-to-many join or a many-to-many join.
There are two things you could change in your query:
Not essential but you can change:
WHERE leadproductdetail.leadid =1
AND leadproductquality.leadid =1
AND leadproductdetail.leadprodnumber =1
AND leadproductquality.leadprodnumber =1
To:
WHERE leadproductdetail.leadid =1
AND leadproductdetail.leadprodnumber =1
As you are joining on these fields they will be the same in each table and therefore you only need to check against one table. I don't know if that makes sense at all. Hard to explain.
Secondly, have a look at GROUP BY as I think this is what you are after to resolve multiple rows coming back:
SELECT *
FROM leadproductdetail
JOIN leadproductquality ON leadproductdetail.leadid = leadproductquality.leadid
AND leadproductdetail.leadprodnumber = leadproductquality.leadprodnumber
WHERE leadproductdetail.leadid =1
AND leadproductdetail.leadprodnumber =1
GROUP BY leadproductquality.leadid
I hope that helps. Without seeing more code or fully understanding your database schema it's hard to tell exactly but hopefully that's kind of on the right tracks.
Let me know how you get on.
PS. Sorry I didn't reply to your messages from the other week. For some reason I didn't get an email notifying me I had a new message :-S
Good luck!!