You searched for: “mesosaurus
Mesosaurus
A “middle lizard” was an odd, fresh-water dwelling reptile, not a dinosaur, that lived from the Late Carboniferous period to the Early Permian period.

It was one of the first aquatic reptiles whose fossils were found in South Africa and South America. Named by Francois-Louis Gervais in 1865.