Database: MS SQL 2008
SELECT Listing.Title, Listing.MLS, Pictures.PictureTH, Pictures.Picture, Listing.ID FROM Listing INNER JOIN Pictures
Landmine, what database are you using?
If it's sql server 2005 or above or oracle, you can use the pivot command to achieve this.