I'm going to call the second table "tblGallery", which contains the gallery_id and gallery_title fields, just to keep things simple.
You can now use the following query:
$sql = "SELECT A.image_title, A.gallery_id, A.sold, B.gallery_title FROM gallery A INNER JOIN tblGallery B ON A.gallery_id=B.galleryID";
The use of the letters before the field names and after the table names are called "aliases" - they help describe the tables and shorten the names of the tables.
They also help especially if you are using mulitple tables that have the same field name in both tables.