wall_paths (table)

wall_dimensions

dimensions (reference table)

What I've got so far:
Query
SELECT wall_paths.wall_id, wall_paths.wall_path,
dimensions.width, dimensions.height
FROM wall_paths
LEFT JOIN wall_dimensions
ON wall_paths.wall_id = wall_dimensions.wall_id
LEFT JOIN dimensions
ON wall_dimensions.dimension_id = dimensions.dimension_id
WHERE wall_paths.wall_id = 4;
Result

The query is selecting redundant rows, I just would like to select the two paths along with the corresponding dimensions based on the wall_dimensions table. Something like below:
Expected result

Result with GROUP BY in query

Please help on how to select something like the above.
Note: I've tried DISTINCT as well on the query but returns an error.
path_id = 7withdimension_id = 4andpath_id = 8withdimension_id = 5?? Givenwall_pathsis linked towall_dimensionbywall_id, each of those 2 rows inwall_pathsare linked to both rows inwall_dimension. So those 4 rows is exactly what we expect your query to do.